Documentation

Index

Constants

View Source
const (
	MREPL int = iota
	MBEFORE
	MAFTER
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd interface {
	Run() error
	Start() error
	Wait() error
	CombinedOutput() ([]byte, error)
	Output() ([]byte, error)
}

type Namespace

type Namespace interface {
	Bind(new, old string, flags int)
	Mount(new, old string, flags int)
	Cmd(ctx context.Context, cmd string, args ...string) Cmd
	Mkdir(name string) error
	Open(name string) (*os.File, error)
	OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)
	Create(name string) (*os.File, error)
}

type Workspace

type Workspace interface {
	Namespace
	MountWorkspace(s string)
}

Source Files

Directories

Path Synopsis