Movatterモバイル変換


[0]ホーム

URL:


source

package
v0.26.2Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2025 License:Apache-2.0Imports:9Imported by:396

Details

Repository

github.com/moby/buildkit

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 NewManager() (*Manager,error)

func (*Manager)Identifieradded inv0.13.0

func (sm *Manager) Identifier(op *pb.Op_Source, platform *pb.Platform) (Identifier,error)

func (*Manager)Register

func (sm *Manager) Register(srcSource)

func (*Manager)Resolve

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.

Source Files

View all Source files

Directories

PathSynopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp