Documentation ¶
Index ¶
- func ID(root string) (string, error)
- type Worker
- func (w *Worker) BuildkitVersion() client.BuildkitVersion
- func (w *Worker) CacheManager() cache.Manager
- func (w *Worker) Close() error
- func (w *Worker) ContentStore() *containerdsnapshot.Store
- func (w *Worker) DiskUsage(ctx context.Context, opt client.DiskUsageInfo) ([]*client.UsageInfo, error)
- func (w *Worker) Executor() executor.Executor
- func (w *Worker) Exporter(name string, sm *session.Manager) (exporter.Exporter, error)
- func (w *Worker) FromRemote(ctx context.Context, remote *solver.Remote) (ref cache.ImmutableRef, err error)
- func (w *Worker) GCPolicy() []client.PruneInfo
- func (w *Worker) ID() string
- func (w *Worker) Labels() map[string]string
- func (w *Worker) LeaseManager() *leaseutil.Manager
- func (w *Worker) LoadRef(ctx context.Context, id string, hidden bool) (cache.ImmutableRef, error)
- func (w *Worker) Platforms(noCache bool) []ocispecs.Platform
- func (w *Worker) Prune(ctx context.Context, ch chan client.UsageInfo, opt ...client.PruneInfo) error
- func (w *Worker) PruneCacheMounts(ctx context.Context, ids []string) error
- func (w *Worker) ResolveImageConfig(ctx context.Context, ref string, opt llb.ResolveImageConfigOpt, ...) (string, digest.Digest, []byte, error)
- func (w *Worker) ResolveOp(v solver.Vertex, s frontend.FrontendLLBBridge, sm *session.Manager) (solver.Op, error)
- type WorkerOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Worker ¶
type Worker struct { WorkerOpt CacheMgr cache.Manager SourceManager *source.Manager ImageSource *containerimage.Source OCILayoutSource *containerimage.Source // contains filtered or unexported fields }
Worker is a local worker instance with dedicated snapshotter, cache, and so on. TODO: s/Worker/OpWorker/g ?
func (*Worker) BuildkitVersion ¶ added in v0.11.0
func (w *Worker) BuildkitVersion() client.BuildkitVersion
func (*Worker) CacheManager ¶
func (*Worker) ContentStore ¶ added in v0.7.0
func (w *Worker) ContentStore() *containerdsnapshot.Store
func (*Worker) FromRemote ¶
func (*Worker) LeaseManager ¶ added in v0.11.0
func (*Worker) PruneCacheMounts ¶ added in v0.6.0
func (*Worker) ResolveImageConfig ¶
type WorkerOpt ¶
type WorkerOpt struct { ID string Labels map[string]string Platforms []ocispecs.Platform GCPolicy []client.PruneInfo BuildkitVersion client.BuildkitVersion NetworkProviders map[pb.NetMode]network.Provider Executor executor.Executor Snapshotter snapshot.Snapshotter ContentStore *containerdsnapshot.Store Applier diff.Applier Differ diff.Comparer ImageStore images.Store // optional RegistryHosts docker.RegistryHosts IdentityMapping *idtools.IdentityMapping LeaseManager *leaseutil.Manager GarbageCollect func(context.Context) (gc.Stats, error) ParallelismSem *semaphore.Weighted MetadataStore *metadata.Store MountPoolRoot string ResourceMonitor *resources.Monitor }
WorkerOpt is specific to a worker. See also CommonOpt.
Click to show internal directories.
Click to hide internal directories.