layermodifier

package
v0.0.0-...-8ff5732 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LayerModifier

type LayerModifier struct {
	// contains filtered or unexported fields
}

func New

func New(ociDirectory OCIDirectory) *LayerModifier

func (*LayerModifier) AddLayer

func (l *LayerModifier) AddLayer(layerTgzPath string) error

func (*LayerModifier) RemoveHydratorLayer

func (l *LayerModifier) RemoveHydratorLayer() error

type OCIDirectory

type OCIDirectory interface {
	AddBlob(srcPath string, blobDescriptor oci.Descriptor) error
	RemoveTopBlob(sha256 string) error
	ClearMetadata() error
	ReadMetadata() (oci.Manifest, oci.Image, error)
	WriteMetadata(layers []oci.Descriptor, diffIds []digest.Digest, layerAdded bool) error
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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