config

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteSanitizedConfig

func WriteSanitizedConfig(cfg SourceConfig, fileName string) error

Types

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.

type SourceConfig

type SourceConfig map[string]RegistrySyncConfig

SourceConfig contains all registries information read from the source YAML file.

func ParseFile

func ParseFile(configFile string) (SourceConfig, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL