Documentation
¶
Index ¶
Constants ¶
const CacheDirHelp = "Cache directory (default: $XDG_CACHE_HOME/complypack or $HOME/.cache/complypack)"
CacheDirHelp is the user-facing description for --cache-dir flag help text.
Variables ¶
This section is empty.
Functions ¶
func Clean ¶
Clean removes all contents of the cache directory while preserving the directory itself. This avoids invalidating the directory inode, which could cause issues for other processes that hold a reference to it. If the directory does not exist, Clean returns nil (not an error).
func NewOCIStore ¶
NewOCIStore creates or opens an OCI Image Layout store at the given directory. The directory and all parents are created with 0750 permissions if they do not already exist.
func ResolveDir ¶
ResolveDir resolves the cache directory using the following priority:
- explicit flag value (if non-empty)
- $XDG_CACHE_HOME/complypack (if XDG_CACHE_HOME is set and non-empty)
- $HOME/.cache/complypack (per XDG Base Directory Specification fallback)
Returns an error if neither HOME nor XDG_CACHE_HOME is set and no explicit value is provided.
Types ¶
This section is empty.