Documentation ¶
Index ¶
- func DefaultGCPolicy(p string, defaultKeepBytes int64) []client.PruneInfo
- type Opt
- type Worker
- func (w *Worker) DiskUsage(ctx context.Context, opt client.DiskUsageInfo) ([]*client.UsageInfo, error)
- func (w *Worker) Exec(ctx context.Context, meta executor.Meta, rootFS cache.ImmutableRef, ...) error
- func (w *Worker) Exporter(name string) (exporter.Exporter, error)
- func (w *Worker) FromRemote(ctx context.Context, remote *solver.Remote) (cache.ImmutableRef, error)
- func (w *Worker) GCPolicy() []client.PruneInfo
- func (w *Worker) GetRemote(ctx context.Context, ref cache.ImmutableRef, createIfNeeded bool) (*solver.Remote, error)
- func (w *Worker) ID() string
- func (w *Worker) Labels() map[string]string
- func (w *Worker) LoadRef(id string, hidden bool) (cache.ImmutableRef, error)
- func (w *Worker) Platforms() []ocispec.Platform
- func (w *Worker) Prune(ctx context.Context, ch chan client.UsageInfo, info ...client.PruneInfo) error
- func (w *Worker) ResolveImageConfig(ctx context.Context, ref string, opt gw.ResolveImageConfigOpt) (digest.Digest, []byte, error)
- func (w *Worker) ResolveOp(v solver.Vertex, s frontend.FrontendLLBBridge) (solver.Op, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Opt ¶
type Opt struct { ID string Labels map[string]string GCPolicy []client.PruneInfo SessionManager *session.Manager MetadataStore *metadata.Store Executor executor.Executor Snapshotter snapshot.Snapshotter ContentStore content.Store CacheManager cache.Manager ImageSource source.Source Exporters map[string]exporter.Exporter DownloadManager distribution.RootFSDownloadManager V2MetadataService distmetadata.V2MetadataService Transport nethttp.RoundTripper }
Opt defines a structure for creating a worker.
type Worker ¶
Worker is a local worker instance with dedicated snapshotter, cache, and so on. TODO: s/Worker/OpWorker/g ?
func (*Worker) DiskUsage ¶
func (w *Worker) DiskUsage(ctx context.Context, opt client.DiskUsageInfo) ([]*client.UsageInfo, error)
DiskUsage returns disk usage report
func (*Worker) Exec ¶
func (w *Worker) Exec(ctx context.Context, meta executor.Meta, rootFS cache.ImmutableRef, stdin io.ReadCloser, stdout, stderr io.WriteCloser) error
Exec executes a process directly on a worker
func (*Worker) FromRemote ¶
FromRemote converts a remote snapshot reference to a local one
func (*Worker) GetRemote ¶
func (w *Worker) GetRemote(ctx context.Context, ref cache.ImmutableRef, createIfNeeded bool) (*solver.Remote, error)
GetRemote returns a remote snapshot reference for a local one
func (*Worker) Prune ¶
func (w *Worker) Prune(ctx context.Context, ch chan client.UsageInfo, info ...client.PruneInfo) error
Prune deletes reclaimable build cache
Click to show internal directories.
Click to hide internal directories.