Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheExporter ¶
type CacheExporter interface {
Export(context.Context) ([]cacheimport.CacheRecord, error)
}
type InstructionCache ¶
type InstructionCache interface { Probe(ctx context.Context, key digest.Digest) (bool, error) Lookup(ctx context.Context, key digest.Digest, msg string) (interface{}, error) // TODO: regular ref Set(key digest.Digest, ref interface{}) error SetContentMapping(contentKey, key digest.Digest) error GetContentMapping(dgst digest.Digest) ([]digest.Digest, error) }
type LLBOpt ¶
type LLBOpt struct { SourceManager *source.Manager CacheManager cache.Manager Worker worker.Worker InstructionCache InstructionCache ImageSource source.Source Frontends map[string]frontend.Frontend // used by nested invocations CacheExporter *cacheimport.CacheExporter CacheImporter *cacheimport.CacheImporter }
type Metadata ¶
type Metadata interface {
GetIgnoreCache() bool
}
Metadata is per-vertex metadata, implemented by *pb.OpMetadata
type Op ¶
type Op interface { // CacheKey returns a persistent cache key for operation. CacheKey(context.Context) (digest.Digest, error) // ContentMask returns a partial cache checksum with content paths to the // inputs. User can combine the content checksum of these paths to get a valid // content based cache key. ContentMask(context.Context) (digest.Digest, [][]string, error) // Run runs an operation and returns the output references. Run(ctx context.Context, inputs []Reference) (outputs []Reference, err error) }
Op is an implementation for running a vertex
type ResolveOpFunc ¶
ResolveOpFunc finds an Op implementation for a vertex
type SolveRequest ¶
type SolveRequest struct { Definition *pb.Definition Frontend frontend.Frontend Exporter exporter.ExporterInstance FrontendOpt map[string]string ExportCacheRef string ImportCacheRef string }
type Solver ¶
type Solver struct {
// contains filtered or unexported fields
}
func New ¶
func New(resolve ResolveOpFunc, cache InstructionCache, imageSource source.Source, worker worker.Worker, cm cache.Manager, f map[string]frontend.Frontend, ce *cacheimport.CacheExporter, ci *cacheimport.CacheImporter) *Solver
func NewLLBSolver ¶
type Vertex ¶
type Vertex interface { // Digest is a content-addressable vertex identifier Digest() digest.Digest // Sys returns an internal value that is used to execute the vertex. Usually // this is capured by the operation resolver method during solve. Sys() interface{} Metadata() Metadata // Array of vertexes current vertex depends on. Inputs() []Input Name() string // change this to general metadata }
Vertex is one node in the build graph
type VertexEvaluator ¶
type VertexEvaluator interface { Next(context.Context) (*VertexResult, error) Cancel() error }
type VertexResult ¶
type VertexSolver ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.