Documentation ¶
Index ¶
- type Getter
- type ImageLog
- type MockContainerTasks
- func (d *MockContainerTasks) AttachNetwork(network, containerid string) error
- func (m *MockContainerTasks) BuildContainer(config *config.Container, force bool) (string, error)
- func (m *MockContainerTasks) ContainerInfo(id string) (interface{}, error)
- func (d *MockContainerTasks) ContainerLogs(id string, stdOut, stdErr bool) (io.ReadCloser, error)
- func (d *MockContainerTasks) CopyFileToContainer(id, src, dst string) error
- func (d *MockContainerTasks) CopyFromContainer(id, src, dst string) error
- func (d *MockContainerTasks) CopyLocalDockerImageToVolume(images []string, volume string, force bool) ([]string, error)
- func (m *MockContainerTasks) CreateContainer(c *config.Container) (id string, err error)
- func (d *MockContainerTasks) CreateShell(id string, command []string, stdin io.ReadCloser, stdout io.Writer, ...) error
- func (m *MockContainerTasks) CreateVolume(name string) (id string, err error)
- func (d *MockContainerTasks) DetachNetwork(network, containerid string) error
- func (d *MockContainerTasks) ExecuteCommand(id string, command []string, env []string, workingDirectory string, ...) error
- func (m *MockContainerTasks) FindContainerIDs(name string, typeName config.ResourceType) ([]string, error)
- func (d *MockContainerTasks) ListNetworks(id string) []config.NetworkAttachment
- func (m *MockContainerTasks) PullImage(i config.Image, f bool) error
- func (m *MockContainerTasks) RemoveContainer(id string) error
- func (m *MockContainerTasks) RemoveVolume(name string) error
- func (m *MockContainerTasks) SetForcePull(f bool)
- type MockDocker
- func (m *MockDocker) ContainerCreate(ctx context.Context, config *container.Config, ...) (container.ContainerCreateCreatedBody, error)
- func (m *MockDocker) ContainerExecAttach(ctx context.Context, execID string, config types.ExecStartCheck) (types.HijackedResponse, error)
- func (m *MockDocker) ContainerExecCreate(ctx context.Context, container string, config types.ExecConfig) (types.IDResponse, error)
- func (m *MockDocker) ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error)
- func (m *MockDocker) ContainerExecResize(ctx context.Context, execID string, config types.ResizeOptions) error
- func (m *MockDocker) ContainerExecStart(ctx context.Context, execID string, config types.ExecStartCheck) error
- func (m *MockDocker) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
- func (m *MockDocker) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
- func (m *MockDocker) ContainerLogs(ctx context.Context, containerID string, options types.ContainerLogsOptions) (io.ReadCloser, error)
- func (m *MockDocker) ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error
- func (m *MockDocker) ContainerStart(ctx context.Context, ID string, opts types.ContainerStartOptions) error
- func (m *MockDocker) ContainerStop(ctx context.Context, containerID string, timeout *time.Duration) error
- func (m *MockDocker) CopyFromContainer(ctx context.Context, containerID, srcPath string) (io.ReadCloser, types.ContainerPathStat, error)
- func (m *MockDocker) CopyToContainer(ctx context.Context, container, path string, content io.Reader, ...) error
- func (m *MockDocker) ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
- func (m *MockDocker) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)
- func (m *MockDocker) ImagePull(ctx context.Context, refStr string, options types.ImagePullOptions) (io.ReadCloser, error)
- func (m *MockDocker) ImageRemove(ctx context.Context, imageID string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error)
- func (m *MockDocker) ImageSave(ctx context.Context, imageIDs []string) (io.ReadCloser, error)
- func (m *MockDocker) NetworkConnect(ctx context.Context, networkID, containerID string, ...) error
- func (m *MockDocker) NetworkCreate(ctx context.Context, name string, options types.NetworkCreate) (types.NetworkCreateResponse, error)
- func (m *MockDocker) NetworkDisconnect(ctx context.Context, networkID, containerID string, force bool) error
- func (m *MockDocker) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error)
- func (m *MockDocker) NetworkRemove(ctx context.Context, networkID string) error
- func (m *MockDocker) VolumeCreate(ctx context.Context, options volumetypes.VolumeCreateBody) (types.Volume, error)
- func (m *MockDocker) VolumeList(ctx context.Context, filters filters.Args) (volume.VolumeListOKBody, error)
- func (m *MockDocker) VolumeRemove(ctx context.Context, volumeID string, force bool) error
- type MockHTTP
- type MockHelm
- type MockKubernetes
- func (m *MockKubernetes) Apply(files []string, waitUntilReady bool) error
- func (m *MockKubernetes) Delete(files []string) error
- func (m *MockKubernetes) GetPods(selector string) (*v1.PodList, error)
- func (m *MockKubernetes) HealthCheckPods(selectors []string, timeout time.Duration) error
- func (m *MockKubernetes) SetConfig(kubeconfig string) error
- type MockNomad
- func (m *MockNomad) Create(files []string) error
- func (m *MockNomad) Endpoints(job, group, task string) ([]map[string]string, error)
- func (m *MockNomad) HealthCheckAPI(timeout time.Duration) error
- func (m *MockNomad) JobRunning(job string) (bool, error)
- func (m *MockNomad) ParseJob(file string) ([]byte, error)
- func (m *MockNomad) SetConfig(c string, ctx string) error
- func (m *MockNomad) Stop(files []string) error
- type System
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContainerTasks ¶
func (*MockContainerTasks) AttachNetwork ¶ added in v0.1.0
func (d *MockContainerTasks) AttachNetwork(network, containerid string) error
func (*MockContainerTasks) BuildContainer ¶ added in v0.1.0
func (*MockContainerTasks) ContainerInfo ¶ added in v0.1.0
func (m *MockContainerTasks) ContainerInfo(id string) (interface{}, error)
func (*MockContainerTasks) ContainerLogs ¶
func (d *MockContainerTasks) ContainerLogs(id string, stdOut, stdErr bool) (io.ReadCloser, error)
func (*MockContainerTasks) CopyFileToContainer ¶ added in v0.1.18
func (d *MockContainerTasks) CopyFileToContainer(id, src, dst string) error
func (*MockContainerTasks) CopyFromContainer ¶
func (d *MockContainerTasks) CopyFromContainer(id, src, dst string) error
func (*MockContainerTasks) CopyLocalDockerImageToVolume ¶
func (*MockContainerTasks) CreateContainer ¶
func (m *MockContainerTasks) CreateContainer(c *config.Container) (id string, err error)
func (*MockContainerTasks) CreateShell ¶
func (d *MockContainerTasks) CreateShell(id string, command []string, stdin io.ReadCloser, stdout io.Writer, stderr io.Writer) error
func (*MockContainerTasks) CreateVolume ¶
func (m *MockContainerTasks) CreateVolume(name string) (id string, err error)
func (*MockContainerTasks) DetachNetwork ¶
func (d *MockContainerTasks) DetachNetwork(network, containerid string) error
func (*MockContainerTasks) ExecuteCommand ¶
func (*MockContainerTasks) FindContainerIDs ¶
func (m *MockContainerTasks) FindContainerIDs(name string, typeName config.ResourceType) ([]string, error)
func (*MockContainerTasks) ListNetworks ¶ added in v0.1.0
func (d *MockContainerTasks) ListNetworks(id string) []config.NetworkAttachment
func (*MockContainerTasks) PullImage ¶
func (m *MockContainerTasks) PullImage(i config.Image, f bool) error
func (*MockContainerTasks) RemoveContainer ¶
func (m *MockContainerTasks) RemoveContainer(id string) error
func (*MockContainerTasks) RemoveVolume ¶
func (m *MockContainerTasks) RemoveVolume(name string) error
func (*MockContainerTasks) SetForcePull ¶
func (m *MockContainerTasks) SetForcePull(f bool)
type MockDocker ¶
func (*MockDocker) ContainerCreate ¶
func (m *MockDocker) ContainerCreate( ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string, ) (container.ContainerCreateCreatedBody, error)
func (*MockDocker) ContainerExecAttach ¶
func (m *MockDocker) ContainerExecAttach(ctx context.Context, execID string, config types.ExecStartCheck) (types.HijackedResponse, error)
func (*MockDocker) ContainerExecCreate ¶
func (m *MockDocker) ContainerExecCreate(ctx context.Context, container string, config types.ExecConfig) (types.IDResponse, error)
func (*MockDocker) ContainerExecInspect ¶
func (m *MockDocker) ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error)
func (*MockDocker) ContainerExecResize ¶
func (m *MockDocker) ContainerExecResize(ctx context.Context, execID string, config types.ResizeOptions) error
func (*MockDocker) ContainerExecStart ¶
func (m *MockDocker) ContainerExecStart(ctx context.Context, execID string, config types.ExecStartCheck) error
func (*MockDocker) ContainerInspect ¶ added in v0.1.0
func (m *MockDocker) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
func (*MockDocker) ContainerList ¶
func (m *MockDocker) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
func (*MockDocker) ContainerLogs ¶
func (m *MockDocker) ContainerLogs(ctx context.Context, containerID string, options types.ContainerLogsOptions) (io.ReadCloser, error)
func (*MockDocker) ContainerRemove ¶
func (m *MockDocker) ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error
func (*MockDocker) ContainerStart ¶
func (m *MockDocker) ContainerStart(ctx context.Context, ID string, opts types.ContainerStartOptions) error
func (*MockDocker) ContainerStop ¶
func (*MockDocker) CopyFromContainer ¶
func (m *MockDocker) CopyFromContainer(ctx context.Context, containerID, srcPath string) (io.ReadCloser, types.ContainerPathStat, error)
func (*MockDocker) CopyToContainer ¶
func (m *MockDocker) CopyToContainer(ctx context.Context, container, path string, content io.Reader, options types.CopyToContainerOptions) error
func (*MockDocker) ImageBuild ¶ added in v0.1.0
func (m *MockDocker) ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
func (*MockDocker) ImageList ¶
func (m *MockDocker) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)
func (*MockDocker) ImagePull ¶
func (m *MockDocker) ImagePull(ctx context.Context, refStr string, options types.ImagePullOptions) (io.ReadCloser, error)
func (*MockDocker) ImageRemove ¶ added in v0.0.19
func (m *MockDocker) ImageRemove(ctx context.Context, imageID string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error)
func (*MockDocker) ImageSave ¶
func (m *MockDocker) ImageSave(ctx context.Context, imageIDs []string) (io.ReadCloser, error)
func (*MockDocker) NetworkConnect ¶
func (m *MockDocker) NetworkConnect(ctx context.Context, networkID, containerID string, config *network.EndpointSettings) error
func (*MockDocker) NetworkCreate ¶
func (m *MockDocker) NetworkCreate(ctx context.Context, name string, options types.NetworkCreate) (types.NetworkCreateResponse, error)
func (*MockDocker) NetworkDisconnect ¶
func (*MockDocker) NetworkList ¶
func (m *MockDocker) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error)
func (*MockDocker) NetworkRemove ¶
func (m *MockDocker) NetworkRemove(ctx context.Context, networkID string) error
func (*MockDocker) VolumeCreate ¶
func (m *MockDocker) VolumeCreate(ctx context.Context, options volumetypes.VolumeCreateBody) (types.Volume, error)
func (*MockDocker) VolumeList ¶ added in v0.0.20
func (m *MockDocker) VolumeList(ctx context.Context, filters filters.Args) (volume.VolumeListOKBody, error)
func (*MockDocker) VolumeRemove ¶
type MockKubernetes ¶
func (*MockKubernetes) Apply ¶
func (m *MockKubernetes) Apply(files []string, waitUntilReady bool) error
func (*MockKubernetes) Delete ¶
func (m *MockKubernetes) Delete(files []string) error
func (*MockKubernetes) GetPods ¶
func (m *MockKubernetes) GetPods(selector string) (*v1.PodList, error)
func (*MockKubernetes) HealthCheckPods ¶
func (m *MockKubernetes) HealthCheckPods(selectors []string, timeout time.Duration) error
func (*MockKubernetes) SetConfig ¶
func (m *MockKubernetes) SetConfig(kubeconfig string) error
type MockNomad ¶
func (*MockNomad) JobRunning ¶ added in v0.1.16
Click to show internal directories.
Click to hide internal directories.