Documentation ¶
Index ¶
- Variables
- type Docker
- func (d *Docker) CreateNetwork(allocID string, hostname string) (*structs.NetworkSpec, bool, error)
- func (d *Docker) DestroyNetwork(spec *structs.NetworkSpec) error
- func (d *Docker) DestroyTask(taskID string, force bool) error
- func (d *Docker) ExecTask(taskID string, cmd []string) (*driver.ExecTaskResult, error)
- func (d *Docker) RecoverTask(taskID string, task *proto.TaskHandle) error
- func (d *Docker) StartTask(task *driver.Task) (*proto.TaskHandle, error)
- func (d *Docker) StopTask(taskID string, timeout time.Duration) error
- func (d *Docker) WaitTask(ctx context.Context, taskID string) (<-chan *proto.ExitResult, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTaskNotFound = fmt.Errorf("task not found")
Functions ¶
This section is empty.
Types ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func NewDockerDriver ¶
func NewTestDockerDriver ¶
func (*Docker) CreateNetwork ¶
func (*Docker) DestroyNetwork ¶
func (d *Docker) DestroyNetwork(spec *structs.NetworkSpec) error
func (*Docker) RecoverTask ¶
func (d *Docker) RecoverTask(taskID string, task *proto.TaskHandle) error
Click to show internal directories.
Click to hide internal directories.