buildkit

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAddr = "unix:///run/buildkit/buildkitd.sock"
)

Variables

This section is empty.

Functions

func NewClient added in v0.3.0

func NewClient(ctx context.Context, bkOpts Opts) (*client.Client, error)

NewClient returns a new buildkit client with the given addr. If addr is empty it will first try to connect to docker's buildkit instance and then fallback to DefaultAddr.

func SolveToDocker added in v0.3.0

func SolveToDocker(ctx context.Context, c *client.Client, st *llb.State, configData []byte, tag string) error

func SolveToLocal added in v0.3.0

func SolveToLocal(ctx context.Context, c *client.Client, st *llb.State, outPath string) error

func ValidateClient added in v0.3.0

func ValidateClient(ctx context.Context, c *client.Client) error

ValidateClient checks to ensure the connected buildkit instance supports the features required by copa.

Types

type Config

type Config struct {
	ImageName  string
	Client     *client.Client
	ConfigData []byte
	Platform   ispec.Platform
	ImageState llb.State
}

func InitializeBuildkitConfig added in v0.3.0

func InitializeBuildkitConfig(ctx context.Context, clt *client.Client, image string, manifest *types.UpdateManifest) (*Config, error)

nolint: lll

type Opts added in v0.3.0

type Opts struct {
	Addr       string
	CACertPath string
	CertPath   string
	KeyPath    string
}

Jump to

Keyboard shortcuts

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