Documentation ¶
Index ¶
- type EngineOperations
- func (engine *EngineOperations) CleanupContainer(fatal error, status syscall.WaitStatus) error
- func (e *EngineOperations) Config() config.EngineConfig
- func (engine *EngineOperations) CreateContainer(pid int, rpcConn net.Conn) error
- func (e *EngineOperations) InitConfig(cfg *config.Common)
- func (engine *EngineOperations) MonitorContainer(pid int, signals chan os.Signal) (syscall.WaitStatus, error)
- func (engine *EngineOperations) PostStartProcess(pid int) error
- func (e *EngineOperations) PrepareConfig(starterConfig *starter.Config) error
- func (engine *EngineOperations) StartProcess(masterConn net.Conn) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EngineOperations ¶
type EngineOperations struct { CommonConfig *config.Common `json:"-"` EngineConfig *singularityConfig.EngineConfig `json:"engineConfig"` }
EngineOperations describes a runtime engine
func (*EngineOperations) CleanupContainer ¶
func (engine *EngineOperations) CleanupContainer(fatal error, status syscall.WaitStatus) error
CleanupContainer cleans up the container
func (*EngineOperations) Config ¶
func (e *EngineOperations) Config() config.EngineConfig
Config returns a pointer to a singularity.EngineConfig literal as a config.EngineConfig interface. This pointer gets stored in the Engine.Common field.
func (*EngineOperations) CreateContainer ¶
func (engine *EngineOperations) CreateContainer(pid int, rpcConn net.Conn) error
CreateContainer creates a container
func (*EngineOperations) InitConfig ¶
func (e *EngineOperations) InitConfig(cfg *config.Common)
InitConfig stores the pointer to config.Common
func (*EngineOperations) MonitorContainer ¶
func (engine *EngineOperations) MonitorContainer(pid int, signals chan os.Signal) (syscall.WaitStatus, error)
MonitorContainer monitors a container
func (*EngineOperations) PostStartProcess ¶
func (engine *EngineOperations) PostStartProcess(pid int) error
PostStartProcess will execute code in master context after execution of container process, typically to write instance state/config files or execute post start OCI hook
func (*EngineOperations) PrepareConfig ¶
func (e *EngineOperations) PrepareConfig(starterConfig *starter.Config) error
PrepareConfig checks and prepares the runtime engine config
func (*EngineOperations) StartProcess ¶
func (engine *EngineOperations) StartProcess(masterConn net.Conn) error
StartProcess starts the process
Source Files ¶
Click to show internal directories.
Click to hide internal directories.