Documentation
¶
Overview ¶
Package runpath carries per-run filesystem paths on the context: the single cache root and any explicit input dir for --no-fetch replays. These are runtime values set by command wiring, not env vars, so they live on ctx rather than on environment.Config.
Index ¶
- func GetAuditCacheDir(ctx context.Context) string
- func GetCacheDir(ctx context.Context) string
- func GetChecksOutputPath(ctx context.Context) string
- func GetCloneCacheDir(ctx context.Context) string
- func GetDAGCacheDir(ctx context.Context) string
- func GetInputDir(ctx context.Context) string
- func GetNetworkCacheDir(ctx context.Context) string
- func GetOutputDir(ctx context.Context) stringdeprecated
- func SetCacheDir(ctx context.Context, dir string) context.Context
- func SetChecksOutputPath(ctx context.Context, path string) context.Context
- func SetInputDir(ctx context.Context, dir string) context.Context
- func SetOutputDir(ctx context.Context, dir string) context.Contextdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuditCacheDir ¶
GetAuditCacheDir is where the audit-cache stores per-package raw violations. The "audit-v2" subdir is a deliberate break from the legacy "audit" subdir (which held graded SARIF runs) so old entries are silently orphaned rather than mis-decoded.
func GetChecksOutputPath ¶
func GetCloneCacheDir ¶
GetCloneCacheDir is where per-package unpacked git working trees live.
func GetDAGCacheDir ¶
GetDAGCacheDir is where DAG node yml outputs are written and read back from during --no-fetch replays.
func GetInputDir ¶
GetInputDir returns the explicit --input-dir if set, otherwise falls back to the DAG cache. The fallback lets a single-run flow read its own ymls without the caller having to set --input-dir.
func GetNetworkCacheDir ¶
GetNetworkCacheDir is the root for the cache backend's filesystem storage: compressed clone tarballs, registry JSON, HTTP response cache.
func GetOutputDir
deprecated
func SetCacheDir ¶
SetCacheDir stores the single cache root. All cache subdirs (dag, clones, audit, network) are computed relative to this root.
func SetChecksOutputPath ¶
Types ¶
This section is empty.