runtime

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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

func (*DockerRuntime) Run

func (d *DockerRuntime) Run(ctx context.Context, t *task.Task) error

func (*DockerRuntime) Stop

func (d *DockerRuntime) Stop(ctx context.Context, t *task.Task) 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.

type RuntimeType

type RuntimeType string
const (
	Docker RuntimeType = "docker"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL