docker

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutor

func NewExecutor() executor.Interface

NewExecutor 注意设置 DOCKER_API_VERSION, 保障客户端版本兼容.

Types

type Executor

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

func (*Executor) ChangeResult

func (e *Executor) ChangeResult() <-chan *model.TaskExecResult

func (*Executor) Exit

func (e *Executor) Exit(taskKey string) error

func (*Executor) List

func (e *Executor) List(ctx context.Context) ([]*model.TaskExecResult, error)

func (*Executor) Pause

func (e *Executor) Pause(taskKey string) error

func (*Executor) Resume

func (e *Executor) Resume(taskKey string) error

func (*Executor) Run

func (e *Executor) Run(param *model.TaskExecParam) error

func (*Executor) Stop

func (e *Executor) Stop(taskKey string) error

Jump to

Keyboard shortcuts

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