layer

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	RetrieveLayer(sha string) (io.ReadCloser, error)
}

type DefaultMetadataRestorer

type DefaultMetadataRestorer struct {
	LayersDir  string
	SkipLayers bool
	Logger     log.Logger
}

func NewDefaultMetadataRestorer added in v0.14.1

func NewDefaultMetadataRestorer(layersDir string, skipLayers bool, logger log.Logger) *DefaultMetadataRestorer

func (*DefaultMetadataRestorer) Restore

func (r *DefaultMetadataRestorer) Restore(buildpacks []buildpack.GroupElement, appMeta files.LayersMetadata, cacheMeta platform.CacheMetadata, layerSHAStore SHAStore) error

type DefaultSBOMRestorer

type DefaultSBOMRestorer struct {
	LayersDir string
	Logger    log.Logger
}

func (*DefaultSBOMRestorer) RestoreFromCache

func (r *DefaultSBOMRestorer) RestoreFromCache(cache Cache, layerDigest string) error

func (*DefaultSBOMRestorer) RestoreFromPrevious

func (r *DefaultSBOMRestorer) RestoreFromPrevious(image imgutil.Image, layerDigest string) error

func (*DefaultSBOMRestorer) RestoreToBuildpackLayers

func (r *DefaultSBOMRestorer) RestoreToBuildpackLayers(detectedBps []buildpack.GroupElement) error

type MetadataRestorer

type MetadataRestorer interface {
	Restore(buildpacks []buildpack.GroupElement, appMeta files.LayersMetadata, cacheMeta platform.CacheMetadata, layerSHAStore SHAStore) error
}

type NopMetadataRestorer added in v0.14.1

type NopMetadataRestorer struct{}

func (*NopMetadataRestorer) Restore added in v0.14.1

type NopSBOMRestorer added in v0.14.0

type NopSBOMRestorer struct{}

func (*NopSBOMRestorer) RestoreFromCache added in v0.14.0

func (r *NopSBOMRestorer) RestoreFromCache(_ Cache, _ string) error

func (*NopSBOMRestorer) RestoreFromPrevious added in v0.14.0

func (r *NopSBOMRestorer) RestoreFromPrevious(_ imgutil.Image, _ string) error

func (*NopSBOMRestorer) RestoreToBuildpackLayers added in v0.14.0

func (r *NopSBOMRestorer) RestoreToBuildpackLayers(_ []buildpack.GroupElement) error

type SBOMRestorer

type SBOMRestorer interface {
	RestoreFromPrevious(image imgutil.Image, layerDigest string) error
	RestoreFromCache(cache Cache, layerDigest string) error
	RestoreToBuildpackLayers(detectedBps []buildpack.GroupElement) error
}

func NewSBOMRestorer

func NewSBOMRestorer(opts SBOMRestorerOpts, platformAPI *api.Version) SBOMRestorer

type SBOMRestorerOpts added in v0.14.0

type SBOMRestorerOpts struct {
	LayersDir string
	Logger    log.Logger
	Nop       bool
}

type SHAStore

type SHAStore interface {
	Get(buildpackID string, layer buildpack.Layer) (string, error)
	// contains filtered or unexported methods
}

func NewSHAStore

func NewSHAStore(useShaFiles bool) SHAStore

Jump to

Keyboard shortcuts

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