Documentation ¶
Index ¶
- type ImageIdentifier
- type OCIIdentifier
- type ResolverType
- type Source
- func (is *Source) Identifier(scheme, ref string, attrs map[string]string, platform *pb.Platform) (source.Identifier, error)
- func (is *Source) Resolve(ctx context.Context, id source.Identifier, sm *session.Manager, ...) (source.SourceInstance, error)
- func (is *Source) ResolveImageConfig(ctx context.Context, ref string, opt sourceresolver.Opt, sm *session.Manager, ...) (digest.Digest, []byte, error)
- func (is *Source) Schemes() []string
- type SourceOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageIdentifier ¶ added in v0.13.0
type ImageIdentifier struct { Reference reference.Spec Platform *ocispecs.Platform ResolveMode resolver.ResolveMode RecordType client.UsageRecordType LayerLimit *int }
func NewImageIdentifier ¶ added in v0.13.0
func NewImageIdentifier(str string) (*ImageIdentifier, error)
func (*ImageIdentifier) Capture ¶ added in v0.13.0
func (id *ImageIdentifier) Capture(c *provenance.Capture, pin string) error
func (*ImageIdentifier) Scheme ¶ added in v0.13.0
func (*ImageIdentifier) Scheme() string
type OCIIdentifier ¶ added in v0.13.0
type OCIIdentifier struct { Reference reference.Spec Platform *ocispecs.Platform SessionID string StoreID string LayerLimit *int }
func NewOCIIdentifier ¶ added in v0.13.0
func NewOCIIdentifier(str string) (*OCIIdentifier, error)
func (*OCIIdentifier) Capture ¶ added in v0.13.0
func (id *OCIIdentifier) Capture(c *provenance.Capture, pin string) error
func (*OCIIdentifier) Scheme ¶ added in v0.13.0
func (*OCIIdentifier) Scheme() string
type ResolverType ¶ added in v0.11.0
type ResolverType int
const ( ResolverTypeRegistry ResolverType = iota ResolverTypeOCILayout )
type Source ¶ added in v0.8.0
type Source struct { SourceOpt // contains filtered or unexported fields }
func (*Source) Identifier ¶ added in v0.13.0
func (*Source) ResolveImageConfig ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.