dockerexec

package
v3.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Path   string
	Args   []string
	Env    []string
	Dir    string
	TTY    bool
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer

	Process      *Process
	ProcessState *ProcessState
	// contains filtered or unexported fields
}

func (*Cmd) Signal

func (c *Cmd) Signal() error

func (*Cmd) Start

func (c *Cmd) Start() error

func (*Cmd) Wait

func (c *Cmd) Wait() error

type Docker

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

func New

func New(opts *Options) (*Docker, error)

func (*Docker) CommandContext

func (d *Docker) CommandContext(ctx context.Context, program string, args ...string) *Cmd

type Options

type Options struct {
	BuildContext string
	Debug        bool
	Dockerfile   string
	Image        string
	Logger       *zap.Logger
}

type Process

type Process struct {
	Pid int
}

type ProcessState

type ProcessState struct {
	ErrorMessage string
	ExitCode     int
}

Jump to

Keyboard shortcuts

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