namespace

package
v0.0.0-...-d04b29a Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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