Documentation ¶
Index ¶
Constants ¶
View Source
const ( ContainerdAddr = "/run/containerd/containerd.sock" HuangNS = "huang" DeploymentLabel = "deploy" SyncDuration = 3 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeploymentMap ¶
type DeploymentMap map[string][]containerd.Container
type Worker ¶
func (*Worker) Delete ¶
func (w *Worker) Delete(ctx context.Context, deploy *deployment.Deployment) error
func (*Worker) Deploy ¶
func (w *Worker) Deploy(ctx context.Context, deploy *deployment.Deployment, imagePath string, replica int) ([]containerd.Container, error)
Deploy deploy a deployment
func (*Worker) SyncLocalContainerInfos ¶
SyncLocalContainerInfos sync local container infomation
Click to show internal directories.
Click to hide internal directories.