Documentation ¶
Index ¶
- type EngineOperations
- func (e *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 (e *EngineOperations) MonitorContainer(pid int, signals chan os.Signal) (syscall.WaitStatus, error)
- func (e *EngineOperations) PostStartProcess(pid int) error
- func (e *EngineOperations) PrepareConfig(starterConfig *starter.Config) error
- func (e *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 *imgbuildConfig.EngineConfig `json:"engineConfig"` }
EngineOperations implements the engines.EngineOperations interface for the image build process
func (*EngineOperations) CleanupContainer ¶
func (e *EngineOperations) CleanupContainer(fatal error, status syscall.WaitStatus) 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, signals chan os.Signal) (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 ¶
func (e *EngineOperations) PrepareConfig(starterConfig *starter.Config) error
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.