Documentation ¶
Index ¶
- func CacheJob(c Cache, callback func(*config.Job) error) func(*config.Job) error
- func HashFile(filePath string) (string, error)
- func HashJob(job *config.Job) (string, error)
- func LoadCache(c Cache, cacheKey string, job *config.Job) (bool, error)
- func WalkInputs(job *config.Job, fn func(string) error) error
- type Cache
- type CacheEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { Name() string Env() map[string]string Get(namespace string, entry CacheEntry) error Set(namespace, filePath string) (CacheEntry, error) LoadCacheManifest(namespace, cacheKey string) ([]CacheEntry, error) DumpCacheManifest(namespace, cacheKey string, entries []CacheEntry) error }
type CacheEntry ¶
func DumpOutputs ¶
func DumpOutputs(cacheKey string, c Cache, outputs []string) ([]CacheEntry, error)
func (*CacheEntry) LoadAttrs ¶
func (c *CacheEntry) LoadAttrs() error
func (CacheEntry) SyncAttrs ¶
func (c CacheEntry) SyncAttrs() error
Click to show internal directories.
Click to hide internal directories.