containerimage

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageIdentifier

type ImageIdentifier struct {
	Reference   reference.Spec
	Platform    *ocispecs.Platform
	ResolveMode resolver.ResolveMode
	RecordType  client.UsageRecordType
	LayerLimit  *int
}

func NewImageIdentifier

func NewImageIdentifier(str string) (*ImageIdentifier, error)

func (*ImageIdentifier) Capture

func (id *ImageIdentifier) Capture(c *provenance.Capture, pin string) error

func (*ImageIdentifier) Scheme

func (*ImageIdentifier) Scheme() string

type OCIIdentifier

type OCIIdentifier struct {
	Reference  reference.Spec
	Platform   *ocispecs.Platform
	SessionID  string
	StoreID    string
	LayerLimit *int
}

func NewOCIIdentifier

func NewOCIIdentifier(str string) (*OCIIdentifier, error)

func (*OCIIdentifier) Capture

func (id *OCIIdentifier) Capture(c *provenance.Capture, pin string) error

func (*OCIIdentifier) Scheme

func (*OCIIdentifier) Scheme() string

type ResolverType

type ResolverType int
const (
	ResolverTypeRegistry ResolverType = iota
	ResolverTypeOCILayout
)

type Source

type Source struct {
	SourceOpt
	// contains filtered or unexported fields
}

func NewSource

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

func (*Source) Identifier

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

func (*Source) Resolve

func (*Source) ResolveImageConfig

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

func (*Source) Schemes

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