docker

package
v0.0.0-...-fd5b208 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerID

type ContainerID = types.TaskID

type Docker

type Docker struct {
	*client.Client
	// contains filtered or unexported fields
}

func New

func New() *Docker

func (Docker) CreateUploadURL

func (Docker) CreateUploadURL(ctx context.Context, name string) (string, error)

func (Docker) GetInfo

func (d Docker) GetInfo(ctx context.Context, id ContainerID) (*types.TaskInfo, error)

func (Docker) ListSecrets

func (Docker) ListSecrets(ctx context.Context) ([]string, error)

func (Docker) PutSecret

func (Docker) PutSecret(ctx context.Context, name, value string) error

func (Docker) Run

func (d Docker) Run(ctx context.Context, env map[string]string, cmd ...string) (ContainerID, error)

func (*Docker) SetUp

func (d *Docker) SetUp(ctx context.Context, containers []pkgtypes.Container) error

func (Docker) Stop

func (d Docker) Stop(ctx context.Context, id ContainerID) error

func (Docker) Tail

func (d Docker) Tail(ctx context.Context, id ContainerID) error

func (Docker) TearDown

func (d Docker) TearDown(ctx context.Context) error

Jump to

Keyboard shortcuts

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