moby

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTerminal added in v0.2.6

func IsTerminal(fd any) bool

func MakeRawTerminal added in v0.2.6

func MakeRawTerminal(fd any) (func(), error)

func TerminalSize added in v0.2.6

func TerminalSize(fd any) (width, height int, err error)

Types

type Moby

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

func New

func New() (*Moby, error)

func (*Moby) Create

func (m *Moby) Create(ctx context.Context, spec engine.Container, options engine.CreateOptions) (string, error)

func (*Moby) Delete

func (m *Moby) Delete(ctx context.Context, containerID string, options engine.DeleteOptions) error

func (*Moby) Exec added in v0.2.6

func (m *Moby) Exec(ctx context.Context, containerID string, command []string, options engine.ExecOptions) error

func (*Moby) Inspect

func (m *Moby) Inspect(ctx context.Context, container string) (engine.Container, error)

func (*Moby) List

func (m *Moby) List(ctx context.Context, options engine.ListOptions) ([]engine.Container, error)

func (*Moby) Logs

func (m *Moby) Logs(ctx context.Context, containerID string, options engine.LogsOptions) error

func (*Moby) PortForward added in v0.2.6

func (m *Moby) PortForward(ctx context.Context, containerID, address string, ports map[int]int, readyChan chan struct{}) error

func (*Moby) Pull

func (m *Moby) Pull(ctx context.Context, reference, platform string, options engine.PullOptions) error

func (*Moby) Run added in v0.2.6

func (m *Moby) Run(ctx context.Context, spec engine.Container, options engine.RunOptions) error

Jump to

Keyboard shortcuts

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