build

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 44 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, drivers []DriverInfo, opt map[string]Options, docker DockerAPI, configDir string, w progress.Writer) (resp map[string]*client.SolveResponse, err error)

func LoadInputs

func LoadInputs(ctx context.Context, d driver.Driver, inp Inputs, pw progress.Writer, target *client.SolveOpt) (func(), error)

Types

type DockerAPI

type DockerAPI interface {
	DockerAPI(name string) (dockerclient.APIClient, error)
}

type DriverInfo

type DriverInfo struct {
	Driver   driver.Driver
	Name     string
	Platform []specs.Platform
	Err      error
	ImageOpt imagetools.Opt
}

type Inputs

type Inputs struct {
	ContextPath      string
	DockerfilePath   string
	InStream         io.Reader
	ContextState     *llb.State
	DockerfileInline string
}

type Options

type Options struct {
	Inputs Inputs

	Allow        []entitlements.Entitlement
	BuildArgs    map[string]string
	CacheFrom    []client.CacheOptionsEntry
	CacheTo      []client.CacheOptionsEntry
	CgroupParent string
	Exports      []client.ExportEntry
	ExtraHosts   []string
	ImageIDFile  string
	Labels       map[string]string
	NetworkMode  string
	NoCache      bool
	Platforms    []specs.Platform
	Pull         bool
	Session      []session.Attachable
	ShmSize      opts.MemBytes
	Tags         []string
	Target       string
	Ulimits      *opts.UlimitOpt
}

Jump to

Keyboard shortcuts

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