Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteSanitizedConfig ¶
func WriteSanitizedConfig(cfg ImagesConfig, fileName string) error
Types ¶
type ImagesConfig ¶ added in v0.6.3
type ImagesConfig map[string]RegistrySyncConfig
ImagesConfig contains all registries information read from the source YAML file.
func ParseImagesConfigFile ¶ added in v0.6.3
func ParseImagesConfigFile(configFile string) (ImagesConfig, error)
func (ImagesConfig) SortedRegistryNames ¶ added in v0.6.3
func (ic ImagesConfig) SortedRegistryNames() []string
type RegistrySyncConfig ¶
type RegistrySyncConfig struct { // Images map images name to slices with the images' references (tags, digests) Images map[string][]string // TLS verification mode (enabled by default) TLSVerify *bool `yaml:"tls-verify,omitempty"` // Username and password used to authenticate with the registry Credentials *types.DockerAuthConfig `yaml:"credentials,omitempty"` }
RegistrySyncConfig contains information about a single registry, read from the source YAML file.
func (RegistrySyncConfig) SortedImageNames ¶ added in v0.6.3
func (rsc RegistrySyncConfig) SortedImageNames() []string
Click to show internal directories.
Click to hide internal directories.