Versions in this module Expand all Collapse all v0 v0.12.4 Jan 17, 2024 Changes in this version + const ExporterDocker + const ExporterImage + const ExporterLocal + const ExporterOCI + const ExporterTar + var PruneAll = pruneOptionFunc(func(pi *PruneInfo) { ... }) + type BuildkitVersion struct + Package string + Revision string + Version string + type CacheOptionsEntry struct + Attrs map[string]string + Type string + type Client struct + func New(ctx context.Context, address string, opts ...ClientOpt) (*Client, error) + func (c *Client) Build(ctx context.Context, opt SolveOpt, product string, buildFunc gateway.BuildFunc, ...) (*SolveResponse, error) + func (c *Client) Close() error + func (c *Client) ContentClient() contentapi.ContentClient + func (c *Client) ControlClient() controlapi.ControlClient + func (c *Client) Dialer() session.Dialer + func (c *Client) DiskUsage(ctx context.Context, opts ...DiskUsageOption) ([]*UsageInfo, error) + func (c *Client) Info(ctx context.Context) (*Info, error) + func (c *Client) ListWorkers(ctx context.Context, opts ...ListWorkersOption) ([]*WorkerInfo, error) + func (c *Client) Prune(ctx context.Context, ch chan UsageInfo, opts ...PruneOption) error + func (c *Client) Solve(ctx context.Context, def *llb.Definition, opt SolveOpt, ...) (*SolveResponse, error) + func (c *Client) Wait(ctx context.Context) error + type ClientOpt interface + func WithContextDialer(df func(context.Context, string) (net.Conn, error)) ClientOpt + func WithCredentials(cert, key string) ClientOpt + func WithGRPCDialOption(opt grpc.DialOption) ClientOpt + func WithServerConfig(serverName, caCert string) ClientOpt + func WithServerConfigSystem(serverName string) ClientOpt + func WithSessionDialer(dialer func(context.Context, string, map[string][]string) (net.Conn, error)) ClientOpt + func WithTracerDelegate(td TracerDelegate) ClientOpt + func WithTracerProvider(t trace.TracerProvider) ClientOpt + type DiskUsageInfo struct + Filter []string + type DiskUsageOption interface + SetDiskUsageOption func(*DiskUsageInfo) + type ExportEntry struct + Attrs map[string]string + Output filesync.FileOutputFunc + OutputDir string + Type string + type Filter []string + func WithFilter(f []string) Filter + func (f Filter) SetDiskUsageOption(di *DiskUsageInfo) + func (f Filter) SetListWorkersOption(lwi *ListWorkersInfo) + func (f Filter) SetPruneOption(pi *PruneInfo) + type Info struct + BuildkitVersion BuildkitVersion + type ListWorkersInfo struct + Filter []string + type ListWorkersOption interface + SetListWorkersOption func(*ListWorkersInfo) + type PruneInfo struct + All bool + Filter []string + KeepBytes int64 + KeepDuration time.Duration + type PruneOption interface + SetPruneOption func(*PruneInfo) + func WithKeepOpt(duration time.Duration, bytes int64) PruneOption + type SolveOpt struct + AllowedEntitlements []entitlements.Entitlement + CacheExports []CacheOptionsEntry + CacheImports []CacheOptionsEntry + Exports []ExportEntry + Frontend string + FrontendAttrs map[string]string + FrontendInputs map[string]llb.State + Internal bool + LocalDirs map[string]string + LocalMounts map[string]fsutil.FS + OCIStores map[string]content.Store + Ref string + Session []session.Attachable + SessionPreInitialized bool + SharedKey string + SharedSession *session.Session + SourcePolicy *spb.Policy + type SolveResponse struct + ExporterResponse map[string]string + type SolveStatus struct + Logs []*VertexLog + Statuses []*VertexStatus + Vertexes []*Vertex + Warnings []*VertexWarning + func NewSolveStatus(resp *controlapi.StatusResponse) *SolveStatus + func (ss *SolveStatus) Marshal() (out []*controlapi.StatusResponse) + type TracerDelegate interface + SetSpanExporter func(context.Context, sdktrace.SpanExporter) error + type UsageInfo struct + CreatedAt time.Time + Description string + ID string + InUse bool + LastUsedAt *time.Time + Mutable bool + Parents []string + RecordType UsageRecordType + Shared bool + Size int64 + UsageCount int + type UsageRecordType string + const UsageRecordTypeCacheMount + const UsageRecordTypeFrontend + const UsageRecordTypeGitCheckout + const UsageRecordTypeInternal + const UsageRecordTypeLocalSource + const UsageRecordTypeRegular + type Vertex struct + Cached bool + Completed *time.Time + Digest digest.Digest + Error string + Inputs []digest.Digest + Name string + ProgressGroup *pb.ProgressGroup + Started *time.Time + type VertexLog struct + Data []byte + Stream int + Timestamp time.Time + Vertex digest.Digest + type VertexStatus struct + Completed *time.Time + Current int64 + ID string + Name string + Started *time.Time + Timestamp time.Time + Total int64 + Vertex digest.Digest + type VertexWarning struct + Detail [][]byte + Level int + Range []*pb.Range + Short []byte + SourceInfo *pb.SourceInfo + URL string + Vertex digest.Digest + type WorkerInfo struct + BuildkitVersion BuildkitVersion + GCPolicy []PruneInfo + ID string + Labels map[string]string + Platforms []ocispecs.Platform