actcache

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheExists

func CacheExists(dir string) bool

CacheExists returns true if cache.json exists in dir.

func GetCache

func GetCache(dir string) (map[string]hashEntry, error)

GetCache returns the entire cache as a map[action]hashEntry.

func NewHashEntry

func NewHashEntry() *hashEntry

func UpdateCacheEntry

func UpdateCacheEntry(dir, action, newSHA string) error

UpdateCacheEntry sets m[action] = { newSHA, now } and persists it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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