go.bigb.es/cacher/cmd

go.bigb.es/cacher @ v0.2.2 — 333189a2 11 days ago

import "go.bigb.es/cacher/cmd"

Variables

var (
	ErrNotFound       = errors.New("cacher: key not found")
	ErrMissNoFallback = errors.New("cacher: cache miss and no --url/--exec fallback")
)

Sentinel errors recognized by Execute → exit code mapping.

exists → ErrNotFound → 1 download without --url/--exec, key missing → ErrMissNoFallback → 3 --exec script failed → the script's own exit status any other error → 2

Functions

f func Execute

src
func Execute()

Source files