container

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 17 Imported by: 5

Documentation

Index

Constants

View Source
const (
	DefaultContainerdCRISocket = "/run/containerd/containerd.sock"
)

Variables

This section is empty.

Functions

func InstallContainerd

func InstallContainerd(m *InstallContainerModule) []task.Interface

func InstallDocker

func InstallDocker(m *InstallContainerModule) []task.Interface

func MigrateACri

func MigrateACri(p *CriMigrateModule) []task.Interface

func MigrateMCri

func MigrateMCri(p *CriMigrateModule) []task.Interface

func MigrateSelfNodeCriTasks

func MigrateSelfNodeCriTasks(runtime connector.Runtime, kubeAction common.KubeAction) error

func MigrateWCri

func MigrateWCri(p *CriMigrateModule) []task.Interface

func UninstallContainerd

func UninstallContainerd(m *UninstallContainerModule) []task.Interface

func UninstallDocker

func UninstallDocker(m *UninstallContainerModule) []task.Interface

Types

type ContainerdExist

type ContainerdExist struct {
	common.KubePrepare
	Not bool
}

func (*ContainerdExist) PreCheck

func (c *ContainerdExist) PreCheck(runtime connector.Runtime) (bool, error)

type CordonNode

type CordonNode struct {
	common.KubeAction
}

func (*CordonNode) Execute

func (d *CordonNode) Execute(runtime connector.Runtime) error

type CriDockerdExist added in v3.1.0

type CriDockerdExist struct {
	common.KubePrepare
	Not bool
}

func (*CriDockerdExist) PreCheck added in v3.1.0

func (d *CriDockerdExist) PreCheck(runtime connector.Runtime) (bool, error)

type CriMigrateModule

type CriMigrateModule struct {
	common.KubeModule

	Skip bool
}

func (*CriMigrateModule) Init

func (p *CriMigrateModule) Init()

func (*CriMigrateModule) IsSkip

func (i *CriMigrateModule) IsSkip() bool

type CrictlExist

type CrictlExist struct {
	common.KubePrepare
	Not bool
}

func (*CrictlExist) PreCheck

func (c *CrictlExist) PreCheck(runtime connector.Runtime) (bool, error)

type DisableContainerd

type DisableContainerd struct {
	common.KubeAction
}

func (*DisableContainerd) Execute

func (d *DisableContainerd) Execute(runtime connector.Runtime) error

type DisableDocker

type DisableDocker struct {
	common.KubeAction
}

func (*DisableDocker) Execute

func (d *DisableDocker) Execute(runtime connector.Runtime) error

type DockerExist

type DockerExist struct {
	common.KubePrepare
	Not bool
}

func (*DockerExist) PreCheck

func (d *DockerExist) PreCheck(runtime connector.Runtime) (bool, error)

type DockerLoginRegistry

type DockerLoginRegistry struct {
	common.KubeAction
}

func (*DockerLoginRegistry) Execute

func (p *DockerLoginRegistry) Execute(runtime connector.Runtime) error

type DrainNode

type DrainNode struct {
	common.KubeAction
}

func (*DrainNode) Execute

func (d *DrainNode) Execute(runtime connector.Runtime) error

type EditKubeletCri

type EditKubeletCri struct {
	common.KubeAction
}

func (*EditKubeletCri) Execute

func (i *EditKubeletCri) Execute(runtime connector.Runtime) error

type EnableContainerd

type EnableContainerd struct {
	common.KubeAction
}

func (*EnableContainerd) Execute

func (e *EnableContainerd) Execute(runtime connector.Runtime) error

type EnableContainerdForDocker added in v3.1.0

type EnableContainerdForDocker struct {
	common.KubeAction
}

func (*EnableContainerdForDocker) Execute added in v3.1.0

func (e *EnableContainerdForDocker) Execute(runtime connector.Runtime) error

type EnableCriDockerd added in v3.1.0

type EnableCriDockerd struct {
	common.KubeAction
}

func (*EnableCriDockerd) Execute added in v3.1.0

func (e *EnableCriDockerd) Execute(runtime connector.Runtime) error

type EnableDocker

type EnableDocker struct {
	common.KubeAction
}

func (*EnableDocker) Execute

func (e *EnableDocker) Execute(runtime connector.Runtime) error

type InstallContainerModule

type InstallContainerModule struct {
	common.KubeModule
	Skip bool
}

func (*InstallContainerModule) Init

func (i *InstallContainerModule) Init()

func (*InstallContainerModule) IsSkip

func (i *InstallContainerModule) IsSkip() bool

type InstallCriDockerdModule added in v3.1.0

type InstallCriDockerdModule struct {
	common.KubeModule
	Skip bool
}

func (*InstallCriDockerdModule) Init added in v3.1.0

func (m *InstallCriDockerdModule) Init()

func (*InstallCriDockerdModule) IsSkip added in v3.1.0

func (m *InstallCriDockerdModule) IsSkip() bool

type MigrateSelfNodeCri

type MigrateSelfNodeCri struct {
	common.KubeAction
}

func (*MigrateSelfNodeCri) Execute

func (d *MigrateSelfNodeCri) Execute(runtime connector.Runtime) error

type PrivateRegistryAuth

type PrivateRegistryAuth struct {
	common.KubePrepare
}

func (*PrivateRegistryAuth) PreCheck

func (p *PrivateRegistryAuth) PreCheck(runtime connector.Runtime) (bool, error)

type RestartCri

type RestartCri struct {
	common.KubeAction
}

func (*RestartCri) Execute

func (i *RestartCri) Execute(runtime connector.Runtime) error

type RestartKubeletNode

type RestartKubeletNode struct {
	common.KubeAction
}

func (*RestartKubeletNode) Execute

func (d *RestartKubeletNode) Execute(runtime connector.Runtime) error

type SyncContainerd

type SyncContainerd struct {
	common.KubeAction
}

func (*SyncContainerd) Execute

func (s *SyncContainerd) Execute(runtime connector.Runtime) error

type SyncCriDockerdBinaries added in v3.1.0

type SyncCriDockerdBinaries struct {
	common.KubeAction
}

func (*SyncCriDockerdBinaries) Execute added in v3.1.0

func (s *SyncCriDockerdBinaries) Execute(runtime connector.Runtime) error

type SyncCrictlBinaries

type SyncCrictlBinaries struct {
	common.KubeAction
}

func (*SyncCrictlBinaries) Execute

func (s *SyncCrictlBinaries) Execute(runtime connector.Runtime) error

type SyncDockerBinaries

type SyncDockerBinaries struct {
	common.KubeAction
}

func (*SyncDockerBinaries) Execute

func (s *SyncDockerBinaries) Execute(runtime connector.Runtime) error

type UnCordonNode

type UnCordonNode struct {
	common.KubeAction
}

func (*UnCordonNode) Execute

func (d *UnCordonNode) Execute(runtime connector.Runtime) error

type UninstallContainerModule

type UninstallContainerModule struct {
	common.KubeModule
	Skip bool
}

func (*UninstallContainerModule) Init

func (i *UninstallContainerModule) Init()

func (*UninstallContainerModule) IsSkip

func (i *UninstallContainerModule) IsSkip() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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