Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *ocispec.Platform, containerName string) (container.CreateResponse, error) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error) ContainerRemove(ctx context.Context, container string, options container.RemoveOptions) error ContainerStart(ctx context.Context, container string, options container.StartOptions) error ContainerStop(ctx context.Context, container string, options container.StopOptions) error CopyFromContainer(ctx context.Context, container, srcPath string) (io.ReadCloser, types.ContainerPathStat, error) ContainerExecCreate(ctx context.Context, container string, config types.ExecConfig) (types.IDResponse, error) ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error) ContainerExecStart(ctx context.Context, execID string, config types.ExecStartCheck) error ServerVersion(ctx context.Context) (types.Version, error) VolumeInspect(ctx context.Context, volumeID string) (volume.Volume, error) }
Client interface for testing purposes. Includes only the methods used by the underlying docker package.
type Docker ¶
type Docker struct {
Client Client
}
Docker for handling communication with the docker processes. Can be created with default settings by calling New or with a custom Client by manually instantiating this type.
func (*Docker) MigrateComposeDB ¶ added in v0.6.0
MigrateComposeDB handles migrating the existing docker compose database into the abctl managed k8s cluster. TODO: move this method out of the the docker class?
Click to show internal directories.
Click to hide internal directories.