cache

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir() string

Dir attempts to find a directory that we can store the cached layers in. It will try the XDG_CACHE_HOME first, followed by ~/.cache and finally TMPDIR or /tmp

Types

type Cache

type Cache interface {
	Put(hash v1.Hash, layer v1.Layer, compressed bool) (v1.Layer, error)
	Get(hash v1.Hash) (v1.Layer, error)
	Delete(hash v1.Hash) error
}

func NewFilesystemCache

func NewFilesystemCache(path string) Cache

Jump to

Keyboard shortcuts

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