Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 []Ref) (outputs []Ref, err error) }
Op is an implementation for running 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 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{} // FIXME(AkihiroSuda): we should not import pb pkg here. Metadata() *pb.OpMetadata // Array of vertexes current vertex depends on. Inputs() []Input Name() string // change this to general metadata }
Vertex is one node in the build graph
Click to show internal directories.
Click to hide internal directories.