Documentation ¶
Index ¶
- type Getter
- type ImageLog
- type MockConnectorServer
- func (m *MockConnectorServer) DestroyService(ctx context.Context, r *shipyard.DestroyRequest) (*shipyard.NullMessage, error)
- func (m *MockConnectorServer) ExposeService(ctx context.Context, r *shipyard.ExposeRequest) (*shipyard.ExposeResponse, error)
- func (m *MockConnectorServer) ListServices(ctx context.Context, msg *shipyard.NullMessage) (*shipyard.ListResponse, error)
- func (m *MockConnectorServer) OpenStream(svr shipyard.RemoteConnection_OpenStreamServer) error
- func (m *MockConnectorServer) Start(addr, rootCertPath, rootKeyPath, leafCertPath, leafKeyPath string) (string, error)
- func (m *MockConnectorServer) Stop()
- type MockContainerTasks
- func (d *MockContainerTasks) AttachNetwork(network, containerid string, aliases []string, ipaddress 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) CopyFilesToVolume(volume string, files []string, path string, force bool) ([]string, error)
- func (d *MockContainerTasks) CopyFromContainer(id, src, dst string) error
- func (d *MockContainerTasks) CopyLocalDockerImagesToVolume(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, force bool) 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) ServerVersion(ctx context.Context) (types.Version, 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 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 utils.ClusterConfig, 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 MockConnectorServer ¶ added in v0.3.3
func NewMockConnectorServer ¶ added in v0.3.3
func NewMockConnectorServer() *MockConnectorServer
func (*MockConnectorServer) DestroyService ¶ added in v0.3.3
func (m *MockConnectorServer) DestroyService(ctx context.Context, r *shipyard.DestroyRequest) (*shipyard.NullMessage, error)
func (*MockConnectorServer) ExposeService ¶ added in v0.3.3
func (m *MockConnectorServer) ExposeService(ctx context.Context, r *shipyard.ExposeRequest) (*shipyard.ExposeResponse, error)
func (*MockConnectorServer) ListServices ¶ added in v0.3.3
func (m *MockConnectorServer) ListServices(ctx context.Context, msg *shipyard.NullMessage) (*shipyard.ListResponse, error)
func (*MockConnectorServer) OpenStream ¶ added in v0.3.3
func (m *MockConnectorServer) OpenStream(svr shipyard.RemoteConnection_OpenStreamServer) error
func (*MockConnectorServer) Start ¶ added in v0.3.3
func (m *MockConnectorServer) Start(addr, rootCertPath, rootKeyPath, leafCertPath, leafKeyPath string) (string, error)
Start the server returning the location
func (*MockConnectorServer) Stop ¶ added in v0.3.3
func (m *MockConnectorServer) Stop()
type MockContainerTasks ¶
func (*MockContainerTasks) AttachNetwork ¶ added in v0.1.0
func (d *MockContainerTasks) AttachNetwork(network, containerid string, aliases []string, ipaddress 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) CopyFilesToVolume ¶ added in v0.2.16
func (*MockContainerTasks) CopyFromContainer ¶
func (d *MockContainerTasks) CopyFromContainer(id, src, dst string) error
func (*MockContainerTasks) CopyLocalDockerImagesToVolume ¶ added in v0.2.16
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, force bool) 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, platform *specs.Platform, 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) ServerVersion ¶ added in v0.3.39
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 MockNomad ¶
func (*MockNomad) JobRunning ¶ added in v0.1.16
Click to show internal directories.
Click to hide internal directories.