containerizer

package
v0.333.2-candidate Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SignalSuccess = iota
	SignalError
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities

type Capabilities interface {
	Limit(bool) error
}

type CapabilitiesStep

type CapabilitiesStep struct {
	Drop         bool
	Capabilities Capabilities
}

func (*CapabilitiesStep) Run

func (step *CapabilitiesStep) Run() error

type ContainerExecer

type ContainerExecer interface {
	Exec(binPath string, args ...string) (int, error)
}

type Containerizer

type Containerizer struct {
	InitBinPath            string
	InitArgs               []string
	Execer                 ContainerExecer
	RootfsPath             string
	BeforeCloneInitializer Initializer
	ContainerInitializer   Initializer
	Signaller              Signaller
	Waiter                 Waiter
	// Temporary until we merge the hook scripts functionality in Golang
	CommandRunner command_runner.CommandRunner
	LibPath       string
}

func (*Containerizer) Create

func (c *Containerizer) Create() error

func (*Containerizer) Init

func (c *Containerizer) Init() error

type FuncStep

type FuncStep struct {
	Func func() error
}

func (*FuncStep) Run

func (s *FuncStep) Run() error

type Initializer

type Initializer interface {
	Init() error
}

type PipeSynchronizer

type PipeSynchronizer struct {
	Reader io.Reader
	Writer io.Writer
}

func (*PipeSynchronizer) IsSignalError

func (ps *PipeSynchronizer) IsSignalError(err error) bool

func (*PipeSynchronizer) SignalError

func (ps *PipeSynchronizer) SignalError(err error) error

func (*PipeSynchronizer) SignalSuccess

func (ps *PipeSynchronizer) SignalSuccess() error

func (*PipeSynchronizer) Wait

func (ps *PipeSynchronizer) Wait(timeout time.Duration) error

type PipeSynchronizerError

type PipeSynchronizerError struct {
	Message string
}

func (PipeSynchronizerError) Error

func (err PipeSynchronizerError) Error() string

type RlimitsInitializer

type RlimitsInitializer interface {
	Init() error
}

type RootFSEnterer

type RootFSEnterer interface {
	Enter() error
}

type ShellRunnerStep

type ShellRunnerStep struct {
	Runner command_runner.CommandRunner
	Path   string
}

func (*ShellRunnerStep) Run

func (step *ShellRunnerStep) Run() error

type Signal

type Signal struct {
	Type    int    `json:"type"`
	Message string `json:"message"`
}

type Signaller

type Signaller interface {
	SignalError(err error) error
	SignalSuccess() error
}

type Waiter

type Waiter interface {
	Wait(timeout time.Duration) error
	IsSignalError(err error) bool
}

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
system contains low-level functions and classes for interacting with the base OS
system contains low-level functions and classes for interacting with the base OS
fake_step_runner
This file was generated by counterfeiter
This file was generated by counterfeiter
fake_user
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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