Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectContainerRuntime ¶
func DetectContainerRuntime() utils.RuntimeType
Types ¶
type ContainerManager ¶
type ContainerManager interface { CreateContainer(ctx context.Context, opts *types.ContainerConfig, authBase64 string) (string, error) StartContainer(ctx context.Context, id string) error StopContainer(ctx context.Context, id string, signal string) error CommitContainer(ctx context.Context, containerID string, opts types.CommitOptions) (string, error) RemoveContainer(ctx context.Context, containerID string) error ContainerList(ctx context.Context, all bool) ([]*types.Container, error) ContainerLogs(ctx context.Context, id string, ShowStdout bool, ShowStderr bool, Follow bool) (io.ReadCloser, error) CopyContentToContainer(ctx context.Context, id, content, dest string) error CopyDirectorToContainer(ctx context.Context, id, srcPath, dstPath string) error CopyToContainer(ctx context.Context, id, srcPath, dstPath string) error CopyFileFromContainer(ctx context.Context, id string, srcPath string) (string, error) ExecContainer(ctx context.Context, id string, cmd []string, attachStdOut bool) (io.Reader, error) InspectContainer(ctx context.Context, id string) (*types.ContainerConfig, error) WaitContainer(ctx context.Context, id string, waitCondition string) (*int64, error) BuildImage(ctx context.Context, dockerfile []byte, imageName string, platform string) (io.ReadCloser, error) BuildMultiArchImage(ctx context.Context, dockerfile []byte, dockerCtx *bytes.Buffer, imageName string, platforms []string, authBase64 string) (io.ReadCloser, []string, error) ListImage(ctx context.Context, image string) ([]string, error) PullImage(ctx context.Context, image string, authBase64 string, platform string) (io.ReadCloser, error) TagImage(ctx context.Context, source, target string) error PushImage(ctx context.Context, target string, authBase64 string) (io.ReadCloser, error) RemoveImage(ctx context.Context, target string) error InspectImage(ctx context.Context, image string) (*types.ImageInfo, error) Name() string }
func InitContainerRuntime ¶
func InitContainerRuntime() (ContainerManager, error)
Click to show internal directories.
Click to hide internal directories.