cache

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKey added in v0.4.0

func CreateKey(platformKey string, lockFileHash string, precacheCommand string) (string, error)

func NewMinioCache

func NewMinioCache(endpoint string, accessKeyID string, secretAccessKey string, bucket string, useTLS bool, insecureTLS bool, log hclog.Logger) *minioCache

NewMinioCache creates a new Minio Cache

Types

type Cacher

type Cacher interface {
	Has(key string) (bool, error)
	Put(key string, reader io.Reader) error
	Get(key string) (io.Reader, error)
}

Cacher represents a cache

func NewLocalCache

func NewLocalCache(dir string, log hclog.Logger) (Cacher, error)

NewLocalCache creates a Cacher, which stores data locally in a directory

Jump to

Keyboard shortcuts

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