cache

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigFilePath

func GetConfigFilePath(cacheHitDir string) string

func Restore

func Restore(result VerifyResult) error

func Save

func Save(result VerifyResult) error

func SaveConfig

func SaveConfig(config CacheConfig, cacheHitDir string) error

Types

type CacheConfig

type CacheConfig struct {
	OutputFiles []CacheConfigOutputFileInfo
}

func LoadConfig

func LoadConfig(cacheHitDir string) (CacheConfig, error)

type CacheConfigOutputFileInfo

type CacheConfigOutputFileInfo struct {
	Hash    string
	Path    string
	ModTime time.Time
}

type VerifyResult

type VerifyResult struct {
	PluginMatch *plugins.Plugin
	CacheHit    bool
	CacheHitDir string
	CanSave     bool
	IoFiles     plugins.InputOutputFiles
}

func Verify

func Verify(opts plugins.GenerateOpts) (VerifyResult, error)

Jump to

Keyboard shortcuts

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