Documentation ¶
Index ¶
- func ID(root string) (string, error)
- func Labels(executor, snapshotter string) map[string]string
- 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) ID() string
- func (w *Worker) InstructionCache() instructioncache.InstructionCache
- func (w *Worker) Labels() map[string]string
- func (w *Worker) Prune(ctx context.Context, ch chan client.UsageInfo) error
- func (w *Worker) ResolveImageConfig(ctx context.Context, ref string) (digest.Digest, []byte, error)
- func (w *Worker) ResolveOp(v solver.Vertex, s worker.SubBuilder) (solver.Op, error)
- type WorkerOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Worker ¶
type Worker struct { WorkerOpt CacheManager cache.Manager SourceManager *source.Manager Cache instructioncache.InstructionCache Exporters map[string]exporter.Exporter ImageSource source.Source CacheExporter *cacheimport.CacheExporter // TODO: remove CacheImporter *cacheimport.CacheImporter // TODO: remove }
Worker is a local worker instance with dedicated snapshotter, cache, and so on. TODO: s/Worker/OpWorker/g ?
func (*Worker) Exec ¶
func (w *Worker) Exec(ctx context.Context, meta executor.Meta, rootFS cache.ImmutableRef, stdin io.ReadCloser, stdout, stderr io.WriteCloser) error
func (*Worker) InstructionCache ¶
func (w *Worker) InstructionCache() instructioncache.InstructionCache
func (*Worker) ResolveImageConfig ¶
type WorkerOpt ¶
type WorkerOpt struct { ID string Labels map[string]string SessionManager *session.Manager MetadataStore *metadata.Store Executor executor.Executor Snapshotter snapshot.Snapshotter ContentStore content.Store Applier diff.Applier Differ diff.Comparer ImageStore images.Store // optional }
WorkerOpt is specific to a worker. See also CommonOpt.
Click to show internal directories.
Click to hide internal directories.