Documentation ¶
Index ¶
- Constants
- func GetContainerdAuthConfig(ctx context.Context, client ctrlruntimeclient.Client, ...) (map[string]AuthConfig, error)
- type AuthConfig
- type Config
- type Containerd
- func (eng *Containerd) AuthConfig() (string, error)
- func (eng *Containerd) AuthConfigFileName() string
- func (eng *Containerd) Config() (string, error)
- func (eng *Containerd) ConfigFileName() string
- func (eng *Containerd) KubeletFlags() []string
- func (eng *Containerd) ScriptFor(os types.OperatingSystem) (string, error)
- func (eng *Containerd) String() string
- type Docker
- func (eng *Docker) AuthConfig() (string, error)
- func (eng *Docker) AuthConfigFileName() string
- func (eng *Docker) Config() (string, error)
- func (eng *Docker) ConfigFileName() string
- func (eng *Docker) KubeletFlags() []string
- func (eng *Docker) ScriptFor(os types.OperatingSystem) (string, error)
- func (eng *Docker) String() string
- type DockerCfgJSON
- type Engine
- type Opt
- type Opts
- type RegistryMirrorsFlags
Constants ¶
View Source
const ( LegacyDockerContainerdVersion = "1.4*" DefaultDockerContainerdVersion = "1.6*" DefaultDockerVersion = "20.10" LegacyDockerVersion = "19.03" )
View Source
const (
DefaultContainerdVersion = "1.6*"
)
Variables ¶
This section is empty.
Functions ¶
func GetContainerdAuthConfig ¶ added in v1.42.2
func GetContainerdAuthConfig(ctx context.Context, client ctrlruntimeclient.Client, registryCredentialsSecret string) (map[string]AuthConfig, error)
Types ¶
type AuthConfig ¶ added in v1.41.0
type AuthConfig struct { // Username is the username to login the registry. Username string `toml:"username,omitempty" json:"username,omitempty"` // Password is the password to login the registry. Password string `toml:"password,omitempty" json:"password,omitempty"` // Auth is a base64 encoded string from the concatenation of the username, // a colon, and the password. Auth string `toml:"auth,omitempty" json:"auth,omitempty"` // IdentityToken is used to authenticate the user and get // an access token for the registry. IdentityToken string `toml:"identitytoken,omitempty" json:"identitytoken,omitempty"` }
AuthConfig is a COPY of github.com/containerd/containerd/pkg/cri/config.AuthConfig. AuthConfig contains the config related to authentication to a specific registry.
type Config ¶ added in v1.24.0
type Config struct { Docker *Docker `json:",omitempty"` Containerd *Containerd `json:",omitempty"` InsecureRegistries []string `json:",omitempty"` RegistryMirrors map[string][]string `json:",omitempty"` RegistryCredentials map[string]AuthConfig `json:",omitempty"` SandboxImage string `json:",omitempty"` ContainerLogMaxFiles string `json:",omitempty"` ContainerLogMaxSize string `json:",omitempty"` ContainerdVersion string `json:",omitempty"` }
func BuildConfig ¶ added in v1.42.2
type Containerd ¶ added in v1.24.0
type Containerd struct {
// contains filtered or unexported fields
}
func (*Containerd) AuthConfig ¶ added in v1.51.0
func (eng *Containerd) AuthConfig() (string, error)
func (*Containerd) AuthConfigFileName ¶ added in v1.51.0
func (eng *Containerd) AuthConfigFileName() string
func (*Containerd) Config ¶ added in v1.24.0
func (eng *Containerd) Config() (string, error)
func (*Containerd) ConfigFileName ¶ added in v1.24.0
func (eng *Containerd) ConfigFileName() string
func (*Containerd) KubeletFlags ¶ added in v1.24.0
func (eng *Containerd) KubeletFlags() []string
func (*Containerd) ScriptFor ¶ added in v1.24.0
func (eng *Containerd) ScriptFor(os types.OperatingSystem) (string, error)
func (*Containerd) String ¶ added in v1.36.2
func (eng *Containerd) String() string
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func (*Docker) AuthConfig ¶ added in v1.51.0
func (*Docker) AuthConfigFileName ¶ added in v1.51.0
func (*Docker) ConfigFileName ¶ added in v1.24.0
func (*Docker) KubeletFlags ¶ added in v1.24.0
type DockerCfgJSON ¶ added in v1.51.0
type DockerCfgJSON struct {
Auths map[string]AuthConfig `json:"auths,omitempty"`
}
type RegistryMirrorsFlags ¶ added in v1.42.2
func (RegistryMirrorsFlags) Set ¶ added in v1.42.2
func (fl RegistryMirrorsFlags) Set(val string) error
func (RegistryMirrorsFlags) String ¶ added in v1.42.2
func (fl RegistryMirrorsFlags) String() string
Click to show internal directories.
Click to hide internal directories.