Documentation
¶
Overview ¶
Package runcache keeps the JSON report of the last analysis of each project in the user cache directory, so a later command can read it back without running the analysis again.
Layout, under the root (<user cache dir>/plumber/runs):
<provider>/<owner>/<repo>.json a remote or detected project
local/<hash>.json a local analysis with no project path,
the hash of its absolute working directory
last the path, relative to the root, of the
most recently written report
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Find ¶
Find is the cached report of project, under provider, or under the one provider that has it when provider is empty; an error wrapping fs.ErrNotExist when none has it.
func Key ¶
Key is where a run's report goes, relative to the root, in slash form: <provider>/<project segments>.json for a project, local/<hash>.json with no project, the hash read off cwd. Every segment is sanitized (segment), so a key never leaves the root.
func Last ¶
Last is the path of the most recently written report; an error wrapping fs.ErrNotExist when no run was cached.
Types ¶
This section is empty.