source
package v0.26.2
Go to latest Published: Nov 20, 2025 License:Apache-2.0
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:9 Opens a new window with list of imports.
Imported by:396 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeIdentifier¶
type Identifier interface {// Scheme returns the scheme of the identifier so that it can be routed back// to an appropriate Source.Scheme()string// Capture records the provenance of the identifier.Capture(dest *provenance.Capture, pinstring)error}typeManager¶
type Manager struct {// contains filtered or unexported fields}funcNewManager¶
func (*Manager)Identifier¶added inv0.13.0
typeSource¶
type Source interface {// Schemes returns a list of SourceOp identifier schemes that this source// should match.Schemes() []string// Identifier constructs an Identifier from the given scheme, ref, and attrs,// all of which come from a SourceOp.Identifier(scheme, refstring, attrs map[string]string, platform *pb.Platform) (Identifier,error)// Resolve constructs an instance of the source from an Identifier.Resolve(ctxcontext.Context, idIdentifier, sm *session.Manager, vtxsolver.Vertex) (SourceInstance,error)}Source implementations provide "root" vertices in the graph that can beconstructed from a URI-like string and arbitrary attrs.
typeSourceInstance¶
type SourceInstance interface {// CacheKey returns the cache key for the instance.CacheKey(ctxcontext.Context, jobCtxsolver.JobContext, indexint) (key, pinstring, optssolver.CacheOpts, donebool, errerror)// Snapshot creates a cache ref for the instance. May return a nil ref if source points to empty content, e.g. image without any layers.Snapshot(ctxcontext.Context, jobCtxsolver.JobContext) (cache.ImmutableRef,error)}SourceInstance represents a cacheable vertex created by a Source.
Click to show internal directories.
Click to hide internal directories.