imgbuild

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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