Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type Engine
- type ExitError
- type Line
- type OomError
- type Pipeline
- func (p *Pipeline) Done() <-chan error
- func (p *Pipeline) Err() error
- func (p *Pipeline) Exec()
- func (p *Pipeline) Head() *yaml.Container
- func (p *Pipeline) Next() <-chan error
- func (p *Pipeline) Pipe() <-chan *Line
- func (p *Pipeline) Setup() error
- func (p *Pipeline) Skip()
- func (p *Pipeline) Stop()
- func (p *Pipeline) Tail() *yaml.Container
- func (p *Pipeline) Teardown()
- type State
Constants ¶
View Source
const ( StdoutLine int = iota StderrLine ExitCodeLine MetadataLine ProgressLine )
Variables ¶
View Source
var ( // ErrSkip is used as a return value when container execution should be // skipped at runtime. It is not returned as an error by any function. ErrSkip = errors.New("Skip") // ErrTerm is used as a return value when the runner should terminate // execution and exit. It is not returned as an error by any function. ErrTerm = errors.New("Terminate") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Engine Engine // Buffer defines the size of the buffer for the channel to which the // console output is streamed. Buffer uint }
Config defines the configuration for creating the Pipeline.
type Engine ¶
type Engine interface { ContainerStart(*yaml.Container) (string, error) ContainerStop(string) error ContainerRemove(string) error ContainerWait(string) (*State, error) ContainerLogs(string) (io.ReadCloser, error) }
Engine defines the container runtime engine.
type Line ¶
type Line struct { Proc string `json:"proc,omitempty"` Time int64 `json:"time,omitempty"` Type int `json:"type,omitempty"` Pos int `json:"pos,omityempty"` Out string `json:"out,omitempty"` }
Line is a line of console output.
type OomError ¶
type OomError struct {
Name string
}
An OomError reports the process received an OOMKill from the kernel.
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline represents a build pipeline.
Click to show internal directories.
Click to hide internal directories.