Versions in this module Expand all Collapse all v0 v0.12.4 Jan 17, 2024 Changes in this version + func AddBuildConfig(ctx context.Context, p *provenance.ProvenancePredicate, c *provenance.Capture, ...) (map[digest.Digest]int, error) + func Load(ctx context.Context, def *pb.Definition, polEngine SourcePolicyEvaluator, ...) (solver.Edge, error) + type Attestation = frontend.Attestation + type ExporterRequest struct + Attrs map[string]string + CacheExporters []RemoteCacheExporter + Exporters []exporter.ExporterInstance + Type string + type HistoryQueue struct + func NewHistoryQueue(opt HistoryQueueOpt) (*HistoryQueue, error) + func (h *HistoryQueue) Delete(ctx context.Context, ref string) error + func (h *HistoryQueue) ImportStatus(ctx context.Context, ch chan *client.SolveStatus) (_ *StatusImportResult, _ func(), err error) + func (h *HistoryQueue) Listen(ctx context.Context, req *controlapi.BuildHistoryRequest, ...) error + func (h *HistoryQueue) OpenBlobWriter(ctx context.Context, mt string) (_ *Writer, err error) + func (h *HistoryQueue) Status(ctx context.Context, ref string, st chan<- *client.SolveStatus) error + func (h *HistoryQueue) Update(ctx context.Context, e *controlapi.BuildHistoryEvent) error + func (h *HistoryQueue) UpdateRef(ctx context.Context, ref string, ...) error + type HistoryQueueOpt struct + CleanConfig *config.HistoryConfig + ContentStore *containerdsnapshot.Store + DB *bolt.DB + LeaseManager *leaseutil.Manager + type LoadOpt func(*pb.Op, *pb.OpMetadata, *solver.VertexOptions) error + func NormalizeRuntimePlatforms() LoadOpt + func ValidateEntitlements(ent entitlements.Set) LoadOpt + func WithCacheSources(cms []solver.CacheManager) LoadOpt + func WithValidateCaps() LoadOpt + type Opt struct + CacheManager solver.CacheManager + CacheResolvers map[string]remotecache.ResolveCacheImporterFunc + Entitlements []string + Frontends map[string]frontend.Frontend + GatewayForwarder *controlgateway.GatewayForwarder + HistoryQueue *HistoryQueue + ResourceMonitor *resources.Monitor + SessionManager *session.Manager + WorkerController *worker.Controller + type Processor func(ctx context.Context, result *Result, s *Solver, j *solver.Job, ...) (*Result, error) + type ProvenanceCreator struct + func NewProvenanceCreator(ctx context.Context, cp *provenance.Capture, res solver.ResultProxy, ...) (*ProvenanceCreator, error) + func (p *ProvenanceCreator) Predicate() (*provenance.ProvenancePredicate, error) + type RemoteCacheExporter struct + IgnoreError bool + type ResolveWorkerFunc func() (worker.Worker, error) + type Result struct + Provenance *provenance.Result + type Solver struct + func New(opt Opt) (*Solver, error) + func (s *Solver) Bridge(b solver.Builder) frontend.FrontendLLBBridge + func (s *Solver) Solve(ctx context.Context, id string, sessionID string, req frontend.SolveRequest, ...) (_ *client.SolveResponse, err error) + func (s *Solver) Status(ctx context.Context, id string, statusChan chan *client.SolveStatus) error + type SourcePolicyEvaluator interface + Evaluate func(ctx context.Context, op *pb.Op) (bool, error) + type StatusImportResult struct + Descriptor ocispecs.Descriptor + NumCachedSteps int + NumCompletedSteps int + NumTotalSteps int + type Writer struct + func (w *Writer) Commit(ctx context.Context) (*ocispecs.Descriptor, func(), error) + func (w *Writer) Discard() + func (w *Writer) Write(p []byte) (int, error)