Documentation
¶
Index ¶
- func Build(ctx context.Context, drivers []DriverInfo, opt map[string]Options, ...) (resp map[string]*client.SolveResponse, err error)
- func BuildWithResultHandler(ctx context.Context, drivers []DriverInfo, opt map[string]Options, ...) (resp map[string]*client.SolveResponse, err error)
- func Invoke(ctx context.Context, cfg ContainerConfig) error
- func LoadInputs(ctx context.Context, d driver.Driver, inp Inputs, pw progress.Writer, ...) (func(), error)
- type ContainerConfig
- type DockerAPI
- type DriverInfo
- type Inputs
- type NamedContext
- type Options
- type PrintFunc
- type ResultContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildWithResultHandler ¶ added in v0.9.0
Types ¶
type ContainerConfig ¶ added in v0.9.0
type ContainerConfig struct {
ResultCtx *ResultContext
Args []string
Env []string
User string
Cwd string
Tty bool
Stdin io.ReadCloser
Stdout io.WriteCloser
Stderr io.WriteCloser
}
ContainerConfig is configuration for a container to run.
type DockerAPI ¶
type DockerAPI interface {
DockerAPI(name string) (dockerclient.APIClient, error)
}
type DriverInfo ¶
type NamedContext ¶ added in v0.8.0
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
NoCacheFilter []string
Platforms []specs.Platform
Pull bool
Session []session.Attachable
ShmSize opts.MemBytes
Tags []string
Target string
Ulimits *opts.UlimitOpt
// Linked marks this target as exclusively linked (not requested by the user).
Linked bool
PrintFunc *PrintFunc
}
Click to show internal directories.
Click to hide internal directories.