cache

package
v0.0.0-...-3817f6d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTargetExecutableFile = "executable"
	DefaultTargetMetadataFile   = "metadata"
)

Variables

View Source
var (
	ErrNotFound = fmt.Errorf("not found")
)

Functions

func Exists

func Exists(path string) (bool, error)

Types

type Cache

type Cache interface {
	AddTarget(target fan.Target) error

	GetTargetForUrl(url string) (fan.Target, error)

	Clean() error
}

func NewDiskCache

func NewDiskCache(cacheDir string) Cache

func NewNoopCache

func NewNoopCache() Cache

Jump to

Keyboard shortcuts

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