Documentation ¶
Index ¶
- Variables
- type Docker
- func (d *Docker) BuildWorkerImage(ctx context.Context) error
- func (d *Docker) CommitWorkerContainerToImage(ctx context.Context, resp container.ContainerCreateCreatedBody, ...) (string, error)
- func (d *Docker) CreateService(info worker.Info, networkName string) (types.ServiceCreateResponse, error)
- func (d *Docker) CreateWorkerContainer(ctx context.Context, networkName string, info worker.Info) (container.ContainerCreateCreatedBody, error)
- func (d *Docker) DeployWorkers(ctx context.Context, info worker.Info) (err error)
- func (d *Docker) GetContainerByName(ctx context.Context, n string) (types.Container, error)
- func (d *Docker) GetServiceByName(ctx context.Context, n string) (swarm.Service, error)
- func (d *Docker) GetWorkerContainerStatus(ctx context.Context, info worker.Info) (status string, err error)
- func (d *Docker) PullImage(ctx context.Context) error
- func (d *Docker) RemoveWorkers(ctx context.Context, info worker.Info) error
- func (d *Docker) StartContainer(ctx context.Context, resp container.ContainerCreateCreatedBody) error
- func (d *Docker) UploadConfigToContainer(ctx context.Context, resp container.ContainerCreateCreatedBody, path string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCheckServiceMissing = errors.New("unable to find check_service. The workers might have already been removed")
View Source
var ErrContainerNotFound = errors.New("container not found. The worker might have already been removed")
View Source
var ErrLabelIsEmpty = errors.New("label should not be empty when creating a check_service on swarm platform")
Functions ¶
This section is empty.
Types ¶
type Docker ¶
type Docker struct { NetworkName string Name string IsSwarm bool Client *client.Client Config config.StaticConfig }
func (*Docker) CommitWorkerContainerToImage ¶
func (*Docker) CreateService ¶
func (*Docker) CreateWorkerContainer ¶
func (*Docker) DeployWorkers ¶
func (*Docker) GetContainerByName ¶
func (*Docker) GetServiceByName ¶
func (*Docker) GetWorkerContainerStatus ¶
func (*Docker) RemoveWorkers ¶
func (*Docker) StartContainer ¶
func (*Docker) UploadConfigToContainer ¶
Click to show internal directories.
Click to hide internal directories.