Documentation
¶
Index ¶
- Constants
- Variables
- func CleanPath(path string) string
- func KnownHookNames() []string
- func SetParams(params *string, args []string, name string)
- func ValidateID(id string) error
- type BaseState
- type Config
- type ExecProcess
- type Hook
- type HookList
- type HookName
- type Hooks
- type InitProcess
- type Net
- type Sandbox
- func (s *Sandbox) Boot(config *specs.Process) (int, error)
- func (s *Sandbox) Config() Config
- func (s *Sandbox) Destroy() error
- func (s *Sandbox) ID() string
- func (s *Sandbox) NewExecProcess(config *specs.Process) (*InitProcess, error)
- func (s *Sandbox) NewInitProcess(config *specs.Process) (*InitProcess, error)
- func (s *Sandbox) PipeName() string
- func (s *Sandbox) RegisterInitHooks() error
- func (s *Sandbox) Run(process *InitProcess) error
- func (s *Sandbox) SetProbe(probe bool)
- func (s *Sandbox) SetStable(stable bool)
- func (s *Sandbox) Signal(sig os.Signal) error
- func (s *Sandbox) Start(process *InitProcess) error
- func (s *Sandbox) State() (*State, error)
- func (s *Sandbox) Status() (Status, error)
- func (s *Sandbox) Step() error
- type State
- type Status
Constants ¶
View Source
const ( User = "org.set-io.boots.user" Cipher = "org.set-io.boots.cipher" Addr = "org.set-io.boots.addr" )
Variables ¶
Functions ¶
func KnownHookNames ¶
func KnownHookNames() []string
func ValidateID ¶
Types ¶
type Config ¶
type Config struct {
Debug bool
RootDir string
Labels []string `json:"labels"`
Version string `json:"version"`
Rootfs string `json:"rootfs"`
Hostname string `json:"hostname"`
HypervisorPath string `json:"hypervisor_path"`
HypervisorParameters []string `json:"hypervisor_parameters,omitempty"`
KernelPath string `json:"kernel_path"`
KernelParameters []string `json:"kernel_parameters,omitempty"`
InitRD string `json:"initrd,omitempty"`
Probe bool `json:"probe,omitempty"`
Stable bool `json:"stable,omitempty"`
Net Net `json:"net"`
Hooks Hooks `json:"-"`
}
func (*Config) GetHypervisorParameters ¶
type ExecProcess ¶
type InitProcess ¶
type InitProcess struct {
*ExecProcess
// contains filtered or unexported fields
}
type Net ¶
type Sandbox ¶
type Sandbox struct {
// contains filtered or unexported fields
}
func (*Sandbox) NewExecProcess ¶
func (s *Sandbox) NewExecProcess(config *specs.Process) (*InitProcess, error)
func (*Sandbox) NewInitProcess ¶
func (s *Sandbox) NewInitProcess(config *specs.Process) (*InitProcess, error)
func (*Sandbox) RegisterInitHooks ¶
func (*Sandbox) Run ¶
func (s *Sandbox) Run(process *InitProcess) error
func (*Sandbox) Start ¶
func (s *Sandbox) Start(process *InitProcess) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.