Versions in this module Expand all Collapse all v0 v0.3.1 Oct 17, 2018 v0.3.0 Oct 12, 2018 Changes in this version + const ExporterDocker + const ExporterImage + const ExporterLocal + const ExporterOCI + var PruneAll = pruneOptionFunc(func(pi *PruneInfo) { ... }) + 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) DiskUsage(ctx context.Context, opts ...DiskUsageOption) ([]*UsageInfo, 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) + type ClientOpt interface + func WithCredentials(serverName, ca, cert, key string) ClientOpt + func WithFailFast() ClientOpt + func WithTracer(t opentracing.Tracer) ClientOpt + type DiskUsageInfo struct + Filter []string + type DiskUsageOption interface + SetDiskUsageOption func(*DiskUsageInfo) + 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 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 + ExportCache string + ExportCacheAttrs map[string]string + Exporter string + ExporterAttrs map[string]string + ExporterOutput io.WriteCloser + ExporterOutputDir string + Frontend string + FrontendAttrs map[string]string + ImportCache []string + LocalDirs map[string]string + Session []session.Attachable + SharedKey string + type SolveResponse struct + ExporterResponse map[string]string + type SolveStatus struct + Logs []*VertexLog + Statuses []*VertexStatus + Vertexes []*Vertex + type UsageInfo struct + CreatedAt time.Time + Description string + ID string + InUse bool + LastUsedAt *time.Time + Mutable bool + Parent 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 + 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 WorkerInfo struct + GCPolicy []PruneInfo + ID string + Labels map[string]string + Platforms []specs.Platform