docker

package
v0.0.0-...-b82b390 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTaskNotFound = fmt.Errorf("task not found")

Functions

This section is empty.

Types

type ComputeResource

type ComputeResource struct {
	*proto.Service
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider() *Provider

func (*Provider) Create

func (*Provider) DestroyTask

func (d *Provider) DestroyTask(taskID string, force bool) error

func (*Provider) Exec

func (d *Provider) Exec(taskID string, cmd []string) (*proto.ExecTaskResult, error)

func (*Provider) RecoverTask

func (d *Provider) RecoverTask(taskID string, task *proto.ServiceState_Handle) error

func (*Provider) StopTask

func (d *Provider) StopTask(taskID string, timeout time.Duration) error

func (*Provider) WaitTask

func (d *Provider) WaitTask(ctx context.Context, taskID string) (<-chan *proto.ExitResult, error)

Jump to

Keyboard shortcuts

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