containerimage

package
v0.14.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 42 Imported by: 80

Documentation

Index

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 NewSource

func NewSource(opt SourceOpt) (*Source, error)

func (*Source) Identifier added in v0.13.0

func (is *Source) Identifier(scheme, ref string, attrs map[string]string, platform *pb.Platform) (source.Identifier, error)

func (*Source) Resolve added in v0.8.0

func (*Source) ResolveImageConfig added in v0.8.0

func (is *Source) ResolveImageConfig(ctx context.Context, ref string, opt sourceresolver.Opt, sm *session.Manager, g session.Group) (digest.Digest, []byte, error)

func (*Source) Schemes added in v0.13.0

func (is *Source) Schemes() []string

type SourceOpt

type SourceOpt struct {
	Snapshotter   snapshot.Snapshotter
	ContentStore  content.Store
	Applier       diff.Applier
	CacheAccessor cache.Accessor
	ImageStore    images.Store // optional
	RegistryHosts docker.RegistryHosts
	ResolverType
	LeaseManager leases.Manager
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL