container

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONTAINER           = "CONTAINER"
	DockerHost          = "/var/run/docker.sock"
	DefaultPassword     = "Seadent123"
	MASTER              = "master"
	NODE                = "node"
	ChangePasswordCmd   = "echo root:%s | chpasswd" // #nosec
	RoleLabel           = "sealer-io-role"
	RoleLabelMaster     = "sealer-io-role-is-master"
	NetworkName         = "sealer-network"
	ImageName           = "registry.cn-qingdao.aliyuncs.com/sealer-io/sealer-base-image:latest"
	SealerImageRootPath = "/var/lib/sealer"
)

Variables

This section is empty.

Functions

func IsDockerAvailable

func IsDockerAvailable() bool

Types

type ApplyProvider added in v0.6.0

type ApplyProvider struct {
	Cluster  *v1.Cluster
	Provider client.ProviderService
}

func NewClientWithCluster

func NewClientWithCluster(cluster *v1.Cluster) (*ApplyProvider, error)

func (*ApplyProvider) Apply added in v0.6.0

func (a *ApplyProvider) Apply() error

func (*ApplyProvider) CheckServerInfo added in v0.6.0

func (a *ApplyProvider) CheckServerInfo() error

func (*ApplyProvider) CleanUp added in v0.6.0

func (a *ApplyProvider) CleanUp() error

func (*ApplyProvider) ReconcileContainer added in v0.6.0

func (a *ApplyProvider) ReconcileContainer() error

type ApplyResult

type ApplyResult struct {
	ToJoinNumber   int
	ToDeleteIPList []string
	Role           string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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