Documentation ¶
Index ¶
Constants ¶
View Source
const ContainerdConfigTemplate = `` /* 1622-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ParseTemplateFromConfig ¶
Types ¶
type AuthConfig ¶ added in v0.10.0
type AuthConfig struct { // Username is the username to login the registry. Username string `toml:"username" yaml:"username"` // Password is the password to login the registry. Password string `toml:"password" yaml:"password"` // Auth is a base64 encoded string from the concatenation of the username, // a colon, and the password. Auth string `toml:"auth" yaml:"auth"` // IdentityToken is used to authenticate the user and get // an access token for the registry. IdentityToken string `toml:"identitytoken" yaml:"identity_token"` }
AuthConfig contains the config related to authentication to a specific registry
type ContainerdConfig ¶
type Mirror ¶ added in v0.10.0
type Mirror struct { // Endpoints are endpoints for a namespace. CRI plugin will try the endpoints // one by one until a working one is found. The endpoint must be a valid url // with host specified. // The scheme, host and path from the endpoint URL will be used. Endpoints []string `toml:"endpoint" yaml:"endpoint"` }
Mirror contains the config related to the registry mirror
type Registry ¶ added in v0.10.0
type Registry struct { // Mirrors are namespace to mirror mapping for all namespaces. Mirrors map[string]Mirror `toml:"mirrors" yaml:"mirrors"` // Configs are configs for each registry. // The key is the FDQN or IP of the registry. Configs map[string]RegistryConfig `toml:"configs" yaml:"configs"` // Auths are registry endpoint to auth config mapping. The registry endpoint must // be a valid url with host specified. // DEPRECATED: Use Configs instead. Remove in containerd 1.4. Auths map[string]AuthConfig `toml:"auths" yaml:"auths"` }
Registry is registry settings configured
type RegistryConfig ¶ added in v0.10.0
type RegistryConfig struct { // Auth contains information to authenticate to the registry. Auth *AuthConfig `toml:"auth" yaml:"auth"` // TLS is a pair of CA/Cert/Key which then are used when creating the transport // that communicates with the registry. TLS *TLSConfig `toml:"tls" yaml:"tls"` }
RegistryConfig contains configuration used to communicate with the registry.
Click to show internal directories.
Click to hide internal directories.