namespaces

package
v0.0.0-...-2081a44 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinderHandle

func BinderHandle(hdl uintptr) func(*CmdOpts)

func LoggerHandle

func LoggerHandle(hdl uintptr) func(*CmdOpts)

func MakeChroot

func MakeChroot(targetExec string) (string, error)

func Pipe

func Pipe(pipe *os.File) func(*CmdOpts)

func PivotRoot

func PivotRoot(root string) (err error)

func Profile

func Profile(profile bool) func(*CmdOpts)

func SetJournalFs

func SetJournalFs(targetExec string) error

Types

type CmdOpts

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

type NamespacedCmd

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

func NewNamespacedCmd

func NewNamespacedCmd(cmd *PluginCmd) *NamespacedCmd

func (*NamespacedCmd) AccountingPath

func (c *NamespacedCmd) AccountingPath(path string) *NamespacedCmd

func (*NamespacedCmd) CertFiles

func (c *NamespacedCmd) CertFiles(list []string) *NamespacedCmd

func (*NamespacedCmd) CertPaths

func (c *NamespacedCmd) CertPaths(list []string) *NamespacedCmd

func (*NamespacedCmd) ConfPath

func (c *NamespacedCmd) ConfPath(path string) *NamespacedCmd

func (*NamespacedCmd) Dumpable

func (c *NamespacedCmd) Dumpable(dumpable bool) *NamespacedCmd

func (*NamespacedCmd) FileDestTemplate

func (c *NamespacedCmd) FileDestTemplate(tmpl string) *NamespacedCmd

func (*NamespacedCmd) PollDirectories

func (c *NamespacedCmd) PollDirectories(dirs []string) *NamespacedCmd

func (*NamespacedCmd) Start

func (c *NamespacedCmd) Start() (err error)

func (*NamespacedCmd) StorePath

func (c *NamespacedCmd) StorePath(path string) *NamespacedCmd

type PluginCmd

type PluginCmd struct {
	Cmd    *exec.Cmd
	Stdin  io.WriteCloser
	Stdout io.ReadCloser
}

func SetupCmd

func SetupCmd(name string, ring kring.Ring, funcopts ...func(*CmdOpts)) (cmd *PluginCmd, err error)

func (*PluginCmd) AppendEnv

func (cmd *PluginCmd) AppendEnv(moreenvs []string)

func (*PluginCmd) Kill

func (cmd *PluginCmd) Kill() error

func (*PluginCmd) Namespaced

func (cmd *PluginCmd) Namespaced() *NamespacedCmd

func (*PluginCmd) SetSysProcAttr

func (cmd *PluginCmd) SetSysProcAttr(attrs *syscall.SysProcAttr)

func (*PluginCmd) Start

func (cmd *PluginCmd) Start() error

func (*PluginCmd) Wait

func (cmd *PluginCmd) Wait() error

Jump to

Keyboard shortcuts

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