Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerAuthConfig ¶
type DockerAuthConfig struct { Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` Auth string `json:"auth,omitempty"` // Email is an optional value associated with the username. // This field is deprecated and will be removed in a later // version of docker. Email string `json:"email,omitempty"` }
DockerAuthConfig contains authorization information for connecting to a registry It mirrors "github.com/docker/docker/api/types.AuthConfig"
func ParseSecretData ¶
func ParseSecretData(imageSecrets []corev1.Secret, registry string) ([]DockerAuthConfig, error)
ParseSecretData parses secret data for docker auth config
type DockerAuthConfigs ¶
type DockerAuthConfigs map[string]DockerAuthConfig
DockerAuthConfigs is a map of registries and their credentials
type DockerAuths ¶
type DockerAuths struct {
Auths DockerAuthConfigs `json:"auths"`
}
DockerAuths contains an embedded DockerAuthConfigs
type DockerImage ¶
type DockerImage struct { Config struct { Entrypoint []string `json:"Entrypoint"` Cmd []string `json:"Cmd"` WorkingDir string `json:"WorkingDir"` } `json:"config"` History []struct { Created time.Time `json:"created"` CreatedBy string `json:"created_by"` } `json:"history"` Shell string `json:"-"` }
DockerImage contains definition of docker image
type Inspector ¶
type Inspector interface {
Inspect(image string) (*DockerImage, error)
}
Inspector is image inspector interface
Click to show internal directories.
Click to hide internal directories.