github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/pkg/domain/entities/play.go (about)

     1  package entities
     2  
     3  import "github.com/containers/image/v5/types"
     4  
     5  // PlayKubeOptions controls playing kube YAML files.
     6  type PlayKubeOptions struct {
     7  	// Authfile - path to an authentication file.
     8  	Authfile string
     9  	// CertDir - to a directory containing TLS certifications and keys.
    10  	CertDir string
    11  	// Username for authenticating against the registry.
    12  	Username string
    13  	// Password for authenticating against the registry.
    14  	Password string
    15  	// Network - name of the CNI network to connect to.
    16  	Network string
    17  	// Quiet - suppress output when pulling images.
    18  	Quiet bool
    19  	// SignaturePolicy - path to a signature-policy file.
    20  	SignaturePolicy string
    21  	// SkipTLSVerify - skip https and certificate validation when
    22  	// contacting container registries.
    23  	SkipTLSVerify types.OptionalBool
    24  	// SeccompProfileRoot - path to a directory containing seccomp
    25  	// profiles.
    26  	SeccompProfileRoot string
    27  	// ConfigMaps - slice of pathnames to kubernetes configmap YAMLs.
    28  	ConfigMaps []string
    29  	// LogDriver for the container. For example: journald
    30  	LogDriver string
    31  	// Start - don't start the pod if false
    32  	Start types.OptionalBool
    33  }
    34  
    35  // PlayKubePod represents a single pod and associated containers created by play kube
    36  type PlayKubePod struct {
    37  	// ID - ID of the pod created as a result of play kube.
    38  	ID string
    39  	// Containers - the IDs of the containers running in the created pod.
    40  	Containers []string
    41  	// Logs - non-fatal errors and log messages while processing.
    42  	Logs []string
    43  }
    44  
    45  // PlayKubeReport contains the results of running play kube.
    46  type PlayKubeReport struct {
    47  	// Pods - pods created by play kube.
    48  	Pods []PlayKubePod
    49  }