Versions in this module Expand all Collapse all v0 v0.4.0 Mar 4, 2022 Changes in this version + func Build(ctx context.Context, c *client.Client, s *session.Session, pw progress.Writer, ...) error + func BuildkitClient(ctx context.Context, addr string) (*client.Client, error) + func NewRemoteDirectory(ctx context.Context, cln *client.Client, pw progress.Writer, ...) (ast.Directory, error) + func Solve(ctx context.Context, c *client.Client, s *session.Session, pw progress.Writer, ...) error + func TreeFromDef(tree treeprint.Tree, def *llb.Definition, opts []SolveOption) error + func WithEvaluate(info *SolveInfo) error + type Console interface + Fd func() uintptr + Name func() string + type ContainerConfig struct + Cmd []string + Labels map[string]string + type ErrorHandler func(context.Context, gateway.Client, error) error + type ImageSpec struct + Canonical reference.Canonical + ContainerConfig ContainerConfig + type MultiWriter struct + func NewMultiWriter(pw progress.Writer) *MultiWriter + func (mw *MultiWriter) WithPrefix(pfx string, force bool) progress.Writer + type Params struct + Def *llb.Definition + SessionOpts []llbutil.SessionOption + SolveOpts []SolveOption + type Progress interface + MultiWriter func() *MultiWriter + Sync func() error + Wait func() error + func NewProgress(ctx context.Context, opts ...ProgressOption) (Progress, error) + type ProgressOption func(*progressInfo) error + func WithLogOutputPlain(w io.Writer) ProgressOption + func WithLogOutputTTY(con Console) ProgressOption + type Request interface + Solve func(ctx context.Context, cln *client.Client, mw *MultiWriter, opts ...SolveOption) error + Tree func(tree treeprint.Tree) error + func NilRequest() Request + func Parallel(candidates ...Request) Request + func Sequential(candidates ...Request) Request + func Single(params *Params) Request + type SolveCallback func(ctx context.Context, resp *client.SolveResponse) error + type SolveInfo struct + Callbacks []SolveCallback + Entitlements []entitlements.Entitlement + ErrorHandler ErrorHandler + Evaluate bool + ImageSpec *ImageSpec + OutputDockerRef string + OutputForceCompression bool + OutputLocal string + OutputLocalOCITarball bool + OutputLocalTarball bool + OutputMoby bool + OutputPushImage string + OutputStargz bool + type SolveOption func(*SolveInfo) error + func WithCallback(fn SolveCallback) SolveOption + func WithDownload(dest string) SolveOption + func WithDownloadDockerTarball(ref string) SolveOption + func WithDownloadMoby(ref string) SolveOption + func WithDownloadOCITarball() SolveOption + func WithDownloadTarball() SolveOption + func WithEntitlement(e entitlements.Entitlement) SolveOption + func WithErrorHandler(errorHandler ErrorHandler) SolveOption + func WithImageSpec(spec *ImageSpec) SolveOption + func WithPushImage(ref string) SolveOption + func WithPushMoby(ref string) SolveOption + func WithStargz(forceCompression bool) SolveOption