Documentation ¶
Index ¶
- type DockerRuntime
- func (d *DockerRuntime) CreateVolume(ctx context.Context, name string) error
- func (d *DockerRuntime) DeleteVolume(ctx context.Context, name string) error
- func (d *DockerRuntime) HealthCheck(ctx context.Context) error
- func (d *DockerRuntime) Run(ctx context.Context, t *task.Task) error
- func (d *DockerRuntime) Stop(ctx context.Context, t *task.Task) error
- type Runtime
- type RuntimeType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerRuntime ¶
type DockerRuntime struct {
// contains filtered or unexported fields
}
func NewDockerRuntime ¶
func NewDockerRuntime() (*DockerRuntime, error)
func (*DockerRuntime) CreateVolume ¶
func (d *DockerRuntime) CreateVolume(ctx context.Context, name string) error
func (*DockerRuntime) DeleteVolume ¶
func (d *DockerRuntime) DeleteVolume(ctx context.Context, name string) error
func (*DockerRuntime) HealthCheck ¶
func (d *DockerRuntime) HealthCheck(ctx context.Context) error
type Runtime ¶
type Runtime interface { Run(ctx context.Context, t *task.Task) error Stop(ctx context.Context, t *task.Task) error CreateVolume(ctx context.Context, name string) error DeleteVolume(ctx context.Context, name string) error HealthCheck(ctx context.Context) error }
Runtime is the actual runtime environment that executes a task.
Click to show internal directories.
Click to hide internal directories.