cache

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeHookHash

func ComputeHookHash(tool string, args []string, files string, glob string, exclude string) string

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func New

func New(workDir string) *Cache

func (*Cache) Clear

func (c *Cache) Clear() error

func (*Cache) Invalidate

func (c *Cache) Invalidate(hookName string, files []string, hookHash string) error

func (*Cache) IsCached

func (c *Cache) IsCached(hookName string, files []string, hookHash string) (cached, uncached []string)

func (*Cache) MarkPassed

func (c *Cache) MarkPassed(hookName string, files []string, hookHash string) error

Jump to

Keyboard shortcuts

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