buildkit

package
v18.9.15+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 58 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 {
	// contains filtered or unexported fields
}

Builder can build using BuildKit backend

func New

func New(opt Opt) (*Builder, error)

New creates a new builder

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, opt backend.BuildConfig) (*builder.Result, error)

Build executes a build request

func (*Builder) Cancel

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

Cancel cancels a build using ID

func (*Builder) DiskUsage

func (b *Builder) DiskUsage(ctx context.Context) ([]*types.BuildCache, error)

DiskUsage returns a report about space used by build cache

func (*Builder) Prune

Prune clears all reclaimable build cache

type Opt

type Opt struct {
	SessionManager      *session.Manager
	Root                string
	Dist                images.DistributionServices
	NetworkController   libnetwork.NetworkController
	DefaultCgroupParent string
	ResolverOpt         resolver.ResolveOptionsFunc
	BuilderConfig       config.BuilderConfig
}

Opt is option struct required for creating the builder

Directories

Path Synopsis
adapters

Jump to

Keyboard shortcuts

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