cache

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package cache provides a primitive cache mechanism for bundle layers

Package cache provides a primitive cache mechanism for bundle layers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(filePathToAdd string) error

Add adds a file to the cache

func AddPulledImgLayers added in v0.13.0

func AddPulledImgLayers(pulledLayers []ocispec.Descriptor, dstDir string) (err error)

AddPulledImgLayers caches the image layers that were just pulled

func CheckLayerExists added in v0.13.0

func CheckLayerExists(ctx context.Context, layer ocispec.Descriptor, store *ocistore.Store, dstDir string) (bool, error)

CheckLayerExists checks if a layer already exists in the bundle store or the cache, copying it to the dstDir if it does

func Exists

func Exists(layerDigest string) bool

Exists checks if a layer exists in the cache

func Use

func Use(layerDigest, dstDir string) error

Use copies a layer from the cache to the dst dir

Types

This section is empty.

Jump to

Keyboard shortcuts

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