sandbox

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2016 License: GPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reap

func Reap()

Clean up behind the children.

func RunCommand

func RunCommand(cmd *exec.Cmd) error

func UpdateActiveState

func UpdateActiveState(state manifest.ActiveState)

Types

type Sandbox

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

func New

func New() *Sandbox

func (*Sandbox) ActiveState

func (box *Sandbox) ActiveState() manifest.ActiveState

func (*Sandbox) Build

func (box *Sandbox) Build() (err error)

func (*Sandbox) Control

func (box *Sandbox) Control(action string, enable_action_hooks, process_templates bool) error

func (*Sandbox) CreatePrivateEndpoints

func (box *Sandbox) CreatePrivateEndpoints(ip string) error

func (*Sandbox) DataDir

func (box *Sandbox) DataDir() string

func (*Sandbox) Deploy

func (box *Sandbox) Deploy() error

func (*Sandbox) DeployDir

func (box *Sandbox) DeployDir() string

func (*Sandbox) Dump

func (box *Sandbox) Dump(sink io.Writer) (err error)

func (*Sandbox) EnvDir

func (box *Sandbox) EnvDir() string

func (*Sandbox) Environ

func (box *Sandbox) Environ() map[string]string

func (*Sandbox) ExportedEnviron

func (box *Sandbox) ExportedEnviron() map[string]string

func (*Sandbox) ExtraHosts

func (box *Sandbox) ExtraHosts() []string

func (*Sandbox) FQDN

func (box *Sandbox) FQDN() string

func (*Sandbox) GetEndpoints

func (box *Sandbox) GetEndpoints(ip string) ([]*manifest.Endpoint, error)

func (*Sandbox) Getenv

func (box *Sandbox) Getenv(name string) string

func (*Sandbox) HomeDir

func (box *Sandbox) HomeDir() string

func (*Sandbox) Install

func (box *Sandbox) Install(name string, source string, input io.Reader) error

Install plugin in the application. The plugin directory should already been populated from broker.

func (*Sandbox) LocalIP

func (box *Sandbox) LocalIP() (string, error)

func (*Sandbox) LogDir

func (box *Sandbox) LogDir() string

func (*Sandbox) Name

func (box *Sandbox) Name() string

func (*Sandbox) Namespace

func (box *Sandbox) Namespace() string

func (*Sandbox) Plugins

func (box *Sandbox) Plugins() (map[string]*manifest.Plugin, error)

func (*Sandbox) PrimaryPlugin

func (box *Sandbox) PrimaryPlugin() (*manifest.Plugin, error)

func (*Sandbox) RepoDir

func (box *Sandbox) RepoDir() string

func (*Sandbox) Restart

func (box *Sandbox) Restart() (err error)

func (*Sandbox) Restore

func (box *Sandbox) Restore(source io.Reader) (err error)

func (*Sandbox) ServiceName

func (box *Sandbox) ServiceName() string

func (*Sandbox) SetActiveState

func (box *Sandbox) SetActiveState(s manifest.ActiveState)

func (*Sandbox) SetPluginEnv

func (box *Sandbox) SetPluginEnv(p *manifest.Plugin, name, value string, export bool) error

func (*Sandbox) Setenv

func (box *Sandbox) Setenv(name, value string, export bool) error

func (*Sandbox) Start

func (box *Sandbox) Start() error

func (*Sandbox) Stop

func (box *Sandbox) Stop() error

func (*Sandbox) UnsetPluginEnv

func (box *Sandbox) UnsetPluginEnv(p *manifest.Plugin, name string)

func (*Sandbox) Unsetenv

func (box *Sandbox) Unsetenv(name string)

Jump to

Keyboard shortcuts

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