snapshot

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 21 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSnapshotName

func GenerateSnapshotName(name string) (string, error)

GenerateSnapshotName generates a random snapshot name.

Types

type OCIWriter

type OCIWriter struct {
	Client client.Client
	Cache  cache.Cache
	Scheme *runtime.Scheme
}

OCIWriter writes snapshot data into the cluster-local OCI cache.

func NewOCIWriter

func NewOCIWriter(client client.Client, cache cache.Cache, scheme *runtime.Scheme) *OCIWriter

NewOCIWriter creates a new OCI cache writer.

func (*OCIWriter) Write

func (w *OCIWriter) Write(
	ctx context.Context,
	owner v1alpha1.SnapshotWriter,
	sourceDir string,
	identity ocmmetav1.Identity,
) (digest string, err error)

type Writer

type Writer interface {
	Write(ctx context.Context, owner v1alpha1.SnapshotWriter, sourceDir string, identity ocmmetav1.Identity) (string, error)
}

Writer creates a snapshot using an artifact path as location for the snapshot data.

Jump to

Keyboard shortcuts

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