Documentation ¶
Index ¶
- Constants
- type EngineConfig
- type EngineOperations
- func (e *EngineOperations) CleanupContainer() 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 (e *EngineOperations) MonitorContainer(pid int) (syscall.WaitStatus, error)
- func (e *EngineOperations) PostStartProcess(pid int) error
- func (e *EngineOperations) PrepareConfig(masterConn net.Conn, starterConfig *starter.Config) error
- func (e *EngineOperations) StartProcess(masterConn net.Conn) error
Constants ¶
View Source
const Name = "imgbuild"
Name of the engine
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EngineConfig ¶
EngineConfig is the config for the Singularity engine used to run a minimal image during image build process
type EngineOperations ¶
type EngineOperations struct { CommonConfig *config.Common `json:"-"` EngineConfig *EngineConfig `json:"engineConfig"` }
EngineOperations implements the engines.EngineOperations interface for the image build process
func (*EngineOperations) CleanupContainer ¶
func (e *EngineOperations) CleanupContainer() error
CleanupContainer _
func (*EngineOperations) Config ¶
func (e *EngineOperations) Config() config.EngineConfig
Config returns the EngineConfig
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 initializes engines config internals
func (*EngineOperations) MonitorContainer ¶
func (e *EngineOperations) MonitorContainer(pid int) (syscall.WaitStatus, error)
MonitorContainer is responsible for waiting on container process
func (*EngineOperations) PostStartProcess ¶
func (e *EngineOperations) PostStartProcess(pid int) error
PostStartProcess actually does nothing for build engine
func (*EngineOperations) PrepareConfig ¶
PrepareConfig validates/prepares EngineConfig setup
func (*EngineOperations) StartProcess ¶
func (e *EngineOperations) StartProcess(masterConn net.Conn) error
StartProcess runs the %post script
Click to show internal directories.
Click to hide internal directories.