builder

package
v0.0.0-...-b4339e2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New(cri cri.CRI, cii cii.CII, opts *BuilderOpts) *Builder

Preparing the builder environment for workers

func (*Builder) ActiveWorkers

func (b *Builder) ActiveWorkers() int

func (*Builder) BuildCancel

func (b *Builder) BuildCancel(ctx context.Context, id string) error

Interrupting the build process

func (*Builder) BuildLogs

func (b *Builder) BuildLogs(ctx context.Context, id string, stream io.Writer) error

Proxy logs writer from task

func (*Builder) Done

func (b *Builder) Done() <-chan bool

Notification that the builder has completed its work

func (*Builder) SetReserveMemory

func (b *Builder) SetReserveMemory(memory string) error

func (*Builder) SetWorkerLimits

func (b *Builder) SetWorkerLimits(instances int, ram, cpu string) error

func (*Builder) Shutdown

func (b *Builder) Shutdown()

Shutdown builder process

func (*Builder) Start

func (b *Builder) Start() error

Initializing the builder and preparing the necessary resources for correct operation

type BuilderOpts

type BuilderOpts struct {
	Stdout     bool
	DindHost   string
	ExtraHosts []string
	RootCerts  []string
}

Jump to

Keyboard shortcuts

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