package
0.0.0-20230227070331-53483ec82e17
Repository: https://github.com/rubiojr/rapi.git
Documentation: pkg.go.dev
# Functions
All returns a list of cache directories.
DefaultDir returns $RESTIC_CACHE_DIR, or the default cache directory for the current OS if that variable is not set.
EnvDir return $RESTIC_CACHE_DIR env.
IsOld returns true if the timestamp is considered old.
New returns a new cache for the repo ID at basedir.
Old returns a list of cache directories with a modification time of more than 30 days ago.
OlderThan returns the list of cache directories older than max.
TestNewCache returns a cache in a temporary directory which is removed when cleanup is called.
# Constants
MaxCacheAge is the default age (30 days) after which cache directories are considered old.