buildkit

package
v25.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 84 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(ctx context.Context, 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) Close

func (b *Builder) Close() error

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

func (*Builder) RegisterGRPC

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

RegisterGRPC registers controller to the grpc server.

type Opt

type Opt struct {
	SessionManager      *session.Manager
	Root                string
	EngineID            string
	Dist                images.DistributionServices
	ImageTagger         mobyexporter.ImageTagger
	NetworkController   *libnetwork.Controller
	DefaultCgroupParent string
	RegistryHosts       docker.RegistryHosts
	BuilderConfig       config.BuilderConfig
	Rootless            bool
	IdentityMapping     idtools.IdentityMapping
	DNSConfig           config.DNSConfig
	ApparmorProfile     string
	UseSnapshotter      bool
	Snapshotter         string
	ContainerdAddress   string
	ContainerdNamespace string
}

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