docker: github.com/docker/docker/builder/builder-next Index | Files | Directories

package buildkit

import "github.com/docker/docker/builder/builder-next"

Index

Package Files

builder.go controller.go executor_unix.go reqbodyhandler.go

type Builder Uses

type Builder struct {
    // contains filtered or unexported fields
}

Builder can build using BuildKit backend

func New Uses

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

New creates a new builder

func (*Builder) Build Uses

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

Build executes a build request

func (*Builder) Cancel Uses

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

Cancel cancels a build using ID

func (*Builder) DiskUsage Uses

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

DiskUsage returns a report about space used by build cache

func (*Builder) Prune Uses

func (b *Builder) Prune(ctx context.Context, opts types.BuildCachePruneOptions) (int64, []string, error)

Prune clears all reclaimable build cache

func (*Builder) RegisterGRPC Uses

func (b *Builder) RegisterGRPC(s *grpc.Server)

RegisterGRPC registers controller to the grpc server.

type Opt Uses

type Opt struct {
    SessionManager      *session.Manager
    Root                string
    Dist                images.DistributionServices
    NetworkController   libnetwork.NetworkController
    DefaultCgroupParent string
    RegistryHosts       docker.RegistryHosts
    BuilderConfig       config.BuilderConfig
    Rootless            bool
    IdentityMapping     *idtools.IdentityMapping
    DNSConfig           config.DNSConfig
}

Opt is option struct required for creating the builder

Directories

PathSynopsis
adapters/containerimage
adapters/localinlinecache
adapters/snapshot
exporter
imagerefchecker
worker

Package buildkit imports 70 packages (graph) and is imported by 4 packages. Updated 2021-01-16. Refresh now. Tools for package owners.