summaryrefslogtreecommitdiff
path: root/pkg/domain/entities/play.go
blob: 93864c23bfb1be18222eaa2e857a7e0f8a72d2a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package entities

import "github.com/containers/image/v5/types"

// PlayKubeOptions controls playing kube YAML files.
type PlayKubeOptions struct {
	// Authfile - path to an authentication file.
	Authfile string
	// CertDir - to a directory containing TLS certifications and keys.
	CertDir string
	// Credentials - `username:password` for authentication against a
	// container registry.
	Credentials string
	// Network - name of the CNI network to connect to.
	Network string
	// Quiet - suppress output when pulling images.
	Quiet bool
	// SignaturePolicy - path to a signature-policy file.
	SignaturePolicy string
	// SkipTLSVerify - skip https and certificate validation when
	// contacting container registries.
	SkipTLSVerify types.OptionalBool
	// SeccompProfileRoot - path to a directory containing seccomp
	// profiles.
	SeccompProfileRoot string
}

// PlayKubeReport contains the results of running play kube.
type PlayKubeReport struct {
	// Pod - the ID of the created pod.
	Pod string
	// Containers - the IDs of the containers running in the created pod.
	Containers []string
	// Logs - non-fatal erros and log messages while processing.
	Logs []string
}