Documentation ¶
Index ¶
- Constants
- Variables
- type CacheOptionsEntry
- type Client
- func (c *Client) Build(ctx context.Context, opt SolveOpt, product string, buildFunc gateway.BuildFunc, ...) (*SolveResponse, error)
- func (c *Client) Close() error
- func (c *Client) Dialer() session.Dialer
- 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
- type DiskUsageInfo
- type DiskUsageOption
- type ExportEntry
- type Filter
- type ListWorkersInfo
- type ListWorkersOption
- type PruneInfo
- type PruneOption
- type SolveOpt
- type SolveResponse
- type SolveStatus
- type TracerDelegate
- type UsageInfo
- type UsageRecordType
- type Vertex
- type VertexLog
- type VertexStatus
- type WorkerInfo
Constants ¶
View Source
const ( ExporterImage = "image" ExporterLocal = "local" ExporterTar = "tar" ExporterOCI = "oci" ExporterDocker = "docker" )
Variables ¶
View Source
var PruneAll = pruneOptionFunc(func(pi *PruneInfo) { pi.All = true })
Functions ¶
This section is empty.
Types ¶
type CacheOptionsEntry ¶ added in v0.4.0
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Build ¶
func (c *Client) Build(ctx context.Context, opt SolveOpt, product string, buildFunc gateway.BuildFunc, statusChan chan *SolveStatus) (*SolveResponse, error)
func (*Client) ListWorkers ¶
func (c *Client) ListWorkers(ctx context.Context, opts ...ListWorkersOption) ([]*WorkerInfo, error)
ListWorkers lists all active workers
func (*Client) Solve ¶
func (c *Client) Solve(ctx context.Context, def *llb.Definition, opt SolveOpt, statusChan chan *SolveStatus) (*SolveResponse, 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 WithContextDialer ¶ added in v0.8.0
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 WithFailFast ¶
func WithFailFast() ClientOpt
func WithTracerDelegate ¶ added in v0.9.0
func WithTracerDelegate(td TracerDelegate) ClientOpt
func WithTracerProvider ¶ added in v0.9.0
func WithTracerProvider(t trace.TracerProvider) ClientOpt
type DiskUsageInfo ¶
type DiskUsageInfo struct {
Filter []string
}
type DiskUsageOption ¶
type DiskUsageOption interface {
SetDiskUsageOption(*DiskUsageInfo)
}
type ExportEntry ¶ added in v0.4.0
type Filter ¶
type Filter []string
func WithFilter ¶
func (Filter) SetDiskUsageOption ¶
func (f Filter) SetDiskUsageOption(di *DiskUsageInfo)
func (Filter) SetListWorkersOption ¶
func (f Filter) SetListWorkersOption(lwi *ListWorkersInfo)
func (Filter) SetPruneOption ¶
type ListWorkersInfo ¶
type ListWorkersInfo struct {
Filter []string
}
ListWorkersInfo is a payload for worker list query
type ListWorkersOption ¶
type ListWorkersOption interface {
SetListWorkersOption(*ListWorkersInfo)
}
ListWorkersOption is an option for a worker list query
type PruneOption ¶
type PruneOption interface {
SetPruneOption(*PruneInfo)
}
func WithKeepOpt ¶
func WithKeepOpt(duration time.Duration, bytes int64) PruneOption
type SolveOpt ¶
type SolveOpt struct { Exports []ExportEntry LocalDirs map[string]string Frontend string FrontendAttrs map[string]string FrontendInputs map[string]llb.State CacheExports []CacheOptionsEntry CacheImports []CacheOptionsEntry Session []session.Attachable AllowedEntitlements []entitlements.Entitlement SessionPreInitialized bool // TODO: refactor to better session syncing }
type SolveResponse ¶
type SolveStatus ¶
type SolveStatus struct { Vertexes []*Vertex Statuses []*VertexStatus Logs []*VertexLog }
type TracerDelegate ¶ added in v0.9.0
type TracerDelegate interface {
SetSpanExporter(context.Context, sdktrace.SpanExporter) error
}
type UsageRecordType ¶
type UsageRecordType string
const ( UsageRecordTypeInternal UsageRecordType = "internal" UsageRecordTypeFrontend UsageRecordType = "frontend" UsageRecordTypeLocalSource UsageRecordType = "source.local" UsageRecordTypeGitCheckout UsageRecordType = "source.git.checkout" UsageRecordTypeCacheMount UsageRecordType = "exec.cachemount" UsageRecordTypeRegular UsageRecordType = "regular" )
type VertexStatus ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package connhelper provides helpers for connecting to a remote daemon host with custom logic.
|
Package connhelper provides helpers for connecting to a remote daemon host with custom logic. |
dockercontainer
Package dockercontainer provides connhelper for docker-container://<container>
|
Package dockercontainer provides connhelper for docker-container://<container> |
kubepod
Package kubepod provides connhelper for kube-pod://<pod>
|
Package kubepod provides connhelper for kube-pod://<pod> |
podmancontainer
Package podmancontainer provides connhelper for podman-container://<container>
|
Package podmancontainer provides connhelper for podman-container://<container> |
Click to show internal directories.
Click to hide internal directories.