Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name string) (namespace.Namespace, error)

Types

type Namespace

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

func (Namespace) Bind

func (n Namespace) Bind(new, old string, flags int)

    Namespace is where builds are run, interface is the same as the plan9 namespaces

    func (Namespace) Cmd

    func (n Namespace) Cmd(ctx context.Context, cmd string, args ...string) namespace.Cmd

    func (Namespace) Create

    func (n Namespace) Create(name string) (*os.File, error)

    func (Namespace) Mkdir

    func (n Namespace) Mkdir(name string) error

    func (Namespace) Mount

    func (ns Namespace) Mount(new, old string, flags int)

    func (Namespace) Open

    func (n Namespace) Open(name string) (*os.File, error)

    func (Namespace) OpenFile

    func (n Namespace) OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)

    Source Files