Versions in this module Expand all Collapse all v0 v0.3.3 Nov 21, 2018 v0.3.2 Oct 31, 2018 v0.3.1 Oct 17, 2018 v0.3.0 Oct 12, 2018 Changes in this version + const DockerImageScheme + const GitScheme + const HttpScheme + const HttpsScheme + const LocalScheme + type GitIdentifier struct + KeepGitDir bool + Ref string + Remote string + Subdir string + func NewGitIdentifier(remoteURL string) (*GitIdentifier, error) + func (i *GitIdentifier) ID() string + type HttpIdentifier struct + Checksum digest.Digest + Filename string + GID int + Perm int + TLS bool + UID int + URL string + func NewHttpIdentifier(str string, tls bool) (*HttpIdentifier, error) + func (_ *HttpIdentifier) ID() string + type Identifier interface + ID func() string + func FromLLB(op *pb.Op_Source, platform *pb.Platform) (Identifier, error) + func FromString(s string) (Identifier, error) + type ImageIdentifier struct + Platform *specs.Platform + RecordType client.UsageRecordType + Reference reference.Spec + ResolveMode ResolveMode + func NewImageIdentifier(str string) (*ImageIdentifier, error) + func (_ *ImageIdentifier) ID() string + type LocalIdentifier struct + ExcludePatterns []string + FollowPaths []string + IncludePatterns []string + Name string + SessionID string + SharedKeyHint string + func NewLocalIdentifier(str string) (*LocalIdentifier, error) + func (*LocalIdentifier) ID() string + type Manager struct + func NewManager() (*Manager, error) + func (sm *Manager) Register(src Source) + func (sm *Manager) Resolve(ctx context.Context, id Identifier) (SourceInstance, error) + type ResolveMode int + const ResolveModeDefault + const ResolveModeForcePull + const ResolveModePreferLocal + func ParseImageResolveMode(v string) (ResolveMode, error) + func (r ResolveMode) String() string + type Source interface + ID func() string + Resolve func(ctx context.Context, id Identifier) (SourceInstance, error) + type SourceInstance interface + CacheKey func(ctx context.Context, index int) (string, bool, error) + Snapshot func(ctx context.Context) (cache.ImmutableRef, error)