Documentation ¶
Index ¶
Constants ¶
View Source
const ( LabelOS = labelPrefix + "os" // GOOS LabelArch = labelPrefix + "arch" // GOARCH LabelExecutor = labelPrefix + "executor" // "oci" or "containerd" LabelSnapshotter = labelPrefix + "snapshotter" // containerd snapshotter name ("overlay", "naive", ...) LabelHostname = labelPrefix + "hostname" )
Pre-defined label keys
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller holds worker instances. Currently, only local workers are supported.
func (*Controller) GetDefault ¶
func (c *Controller) GetDefault() (Worker, error)
GetDefault returns the default local worker
type SubBuilder ¶
type Worker ¶
type Worker interface { // ID needs to be unique in the cluster ID() string Labels() map[string]string InstructionCache() instructioncache.InstructionCache // ResolveOp resolves Vertex.Sys() to Op implementation. SubBuilder is needed for pb.Op_Build. ResolveOp(v types.Vertex, s SubBuilder) (types.Op, error) ResolveImageConfig(ctx context.Context, ref string) (digest.Digest, []byte, error) // Exec is similar to executor.Exec but without []mount.Mount Exec(ctx context.Context, meta executor.Meta, rootFS cache.ImmutableRef, stdin io.ReadCloser, stdout, stderr io.WriteCloser) error DiskUsage(ctx context.Context, opt client.DiskUsageInfo) ([]*client.UsageInfo, error) Exporter(name string) (exporter.Exporter, error) Prune(ctx context.Context, ch chan client.UsageInfo) error }
Click to show internal directories.
Click to hide internal directories.