Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface {
StartTask(task *Task) (*proto.TaskHandle, error)
RecoverTask(taskID string, task *proto.TaskHandle) error
WaitTask(ctx context.Context, taskID string) (<-chan *proto.ExitResult, error)
StopTask(taskID string, timeout time.Duration) error
DestroyTask(taskID string, force bool) error
CreateNetwork(allocID string, hostname string) (*proto.NetworkSpec, bool, error)
DestroyNetwork(spec *proto.NetworkSpec) error
ExecTask(taskID string, cmd []string) (*ExecTaskResult, error)
}
type ExecTaskResult ¶
type MountConfig ¶
type Task ¶
type Task struct {
Id string
AllocID string
Network *proto.NetworkSpec
Mounts []*MountConfig
*proto.Task
}
Click to show internal directories.
Click to hide internal directories.