containerruntime

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDockerCRISocket     = "/var/run/dockershim.sock"
	DefaultContainerdCRISocket = "/run/containerd/containerd.sock"
	DefaultSystemdCgroupDriver = "systemd"
	DefaultCgroupDriver        = "cgroupfs"
	DockerDockerCertsDir       = "/etc/docker/certs.d"
	DockerConfigFileName       = "config.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type         string
	LimitNofile  string `json:"limitNofile,omitempty" yaml:"limitNofile,omitempty"`
	CgroupDriver string `json:"cgroupDriver,omitempty" yaml:"cgroupDriver,omitempty"`
}

type ContainerdInstaller

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

func (ContainerdInstaller) GetInfo

func (c ContainerdInstaller) GetInfo() (Info, error)

func (ContainerdInstaller) InstallOn

func (c ContainerdInstaller) InstallOn(hosts []net.IP) error

func (ContainerdInstaller) UnInstallFrom

func (c ContainerdInstaller) UnInstallFrom(hosts []net.IP) error

type DockerInstaller

type DockerInstaller struct {
	Info
	// contains filtered or unexported fields
}

func (DockerInstaller) GetInfo

func (d DockerInstaller) GetInfo() (Info, error)

func (*DockerInstaller) InstallOn

func (d *DockerInstaller) InstallOn(hosts []net.IP) error

func (*DockerInstaller) UnInstallFrom

func (d *DockerInstaller) UnInstallFrom(hosts []net.IP) error

type Info

type Info struct {
	Config
	CRISocket      string
	CertsDir       string
	ConfigFilePath string
}

type Installer

type Installer interface {
	InstallOn(hosts []net.IP) error

	GetInfo() (Info, error)

	UnInstallFrom(hosts []net.IP) error
}

func NewInstaller

func NewInstaller(conf Config, driver infradriver.InfraDriver) (Installer, error)

Jump to

Keyboard shortcuts

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