Documentation ¶
Index ¶
- Constants
- type Client
- 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, ...) error
- type ClientOpt
- type DiskUsageInfo
- type DiskUsageOption
- type ListWorkersInfo
- type ListWorkersOption
- type PruneInfo
- type PruneOption
- type SolveOpt
- type SolveStatus
- type UsageInfo
- type Vertex
- type VertexLog
- type VertexStatus
- type WorkerInfo
Constants ¶
View Source
const ( ExporterImage = "image" ExporterLocal = "local" ExporterOCI = "oci" ExporterDocker = "docker" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListWorkers ¶
func (c *Client) ListWorkers(ctx context.Context, opts ...ListWorkersOption) ([]*WorkerInfo, error)
func (*Client) Solve ¶
func (c *Client) Solve(ctx context.Context, def *llb.Definition, opt SolveOpt, statusChan chan *SolveStatus) error
Solve calls Solve on the controller. def must be nil if (and only if) opt.Frontend is set.
type ClientOpt ¶
type ClientOpt interface{}
func WithCredentials ¶
WithCredentials configures the TLS parameters of the client. Arguments: * serverName: specifies the name of the target server * ca: specifies the filepath of the CA certificate to use for verification * cert: specifies the filepath of the client certificate * key: specifies the filepath of the client key
func WithTracer ¶
func WithTracer(t opentracing.Tracer) ClientOpt
type DiskUsageInfo ¶
type DiskUsageInfo struct {
Filter string
}
type DiskUsageOption ¶
type DiskUsageOption func(*DiskUsageInfo)
func WithFilter ¶
func WithFilter(f string) DiskUsageOption
type ListWorkersInfo ¶
type ListWorkersInfo struct {
Filter []string
}
type ListWorkersOption ¶
type ListWorkersOption func(*ListWorkersInfo)
func WithWorkerFilter ¶
func WithWorkerFilter(f []string) ListWorkersOption
type PruneOption ¶
type PruneOption func(*PruneInfo)
type SolveStatus ¶
type SolveStatus struct { Vertexes []*Vertex Statuses []*VertexStatus Logs []*VertexLog }
type VertexStatus ¶
type WorkerInfo ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.