containerruntime

package
v1.31.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDockerVersion = "19.03"
	LegacyDockerVersion  = "18.09"
)
View Source
const (
	Default = "docker"
)
View Source
const (
	DefaultContainerdVersion = "1.4"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.24.0

type Config struct {
	Docker             *Docker     `json:",omitempty"`
	Containerd         *Containerd `json:",omitempty"`
	InsecureRegistries []string    `json:",omitempty"`
	RegistryMirrors    []string    `json:",omitempty"`
}

func Get added in v1.24.0

func Get(containerRuntimeName string, opts ...Opt) Config

func (Config) Engine added in v1.24.0

func (cfg Config) Engine(kubeletVersion *semver.Version) Engine

func (Config) String added in v1.24.0

func (cfg Config) String() string

type Containerd added in v1.24.0

type Containerd struct {
	// contains filtered or unexported fields
}

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)

type Docker

type Docker struct {
	// contains filtered or unexported fields
}

func (*Docker) Config added in v1.24.0

func (eng *Docker) Config() (string, error)

func (*Docker) ConfigFileName added in v1.24.0

func (eng *Docker) ConfigFileName() string

func (*Docker) KubeletFlags added in v1.24.0

func (eng *Docker) KubeletFlags() []string

func (*Docker) ScriptFor added in v1.24.0

func (eng *Docker) ScriptFor(os types.OperatingSystem) (string, error)

type Engine added in v1.24.0

type Engine interface {
	KubeletFlags() []string
	ScriptFor(os types.OperatingSystem) (string, error)
	ConfigFileName() string
	Config() (string, error)
}

type Opt added in v1.24.0

type Opt func(*Config)

func WithInsecureRegistries added in v1.24.0

func WithInsecureRegistries(registries []string) Opt

func WithRegistryMirrors added in v1.24.0

func WithRegistryMirrors(mirrors []string) Opt

Jump to

Keyboard shortcuts

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