docker

package
v0.2.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(ctx context.Context, container string, options ExecOptions, command string, args ...string) error

func ExecInteractive

func ExecInteractive(ctx context.Context, container string, options ExecOptions, command string, args ...string) error

func Info added in v0.0.5

func Info(ctx context.Context) (string, *semver.Version, error)

func PortForward added in v0.0.5

func PortForward(ctx context.Context, container string, source, target int) error

func Pull

func Pull(ctx context.Context, image, platform string, options PullOptions) error

func Run

func Run(ctx context.Context, image string, options RunOptions, args ...string) error

func RunInteractive

func RunInteractive(ctx context.Context, image string, options RunOptions, args ...string) error

Types

type ExecOptions

type ExecOptions struct {
	Privileged bool

	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer

	TTY         bool
	Interactive bool

	Dir  string
	User string

	Env map[string]string
}

type PullOptions

type PullOptions struct {
	Stdout io.Writer
	Stderr io.Writer
}

type RunOptions

type RunOptions struct {
	Name string

	Platform string

	Temporary  bool
	Privileged bool

	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer

	Attach      bool
	TTY         bool
	Interactive bool

	Dir  string
	User string

	Env     map[string]string
	Ports   []engine.ContainerPort
	Volumes []engine.ContainerMount
}

Jump to

Keyboard shortcuts

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