Documentation
¶
Overview ¶
Package cache provides cache-related operations.
Index ¶
Constants ¶
View Source
const SchemaFileName = "schema.json"
SchemaFileName is the name of the cache schema version file stored at the root of the cache directory.
View Source
const SchemaVersion = 1
SchemaVersion is the current cache directory schema version.
View Source
const TagListFileName = "releases.json"
TagListFileName is the name of the cached release tag list file stored at the root of the cache directory.
Variables ¶
This section is empty.
Functions ¶
func EnsureSchema ¶ added in v0.14.0
EnsureSchema verifies that the cache schema file exists and matches the current schema version. If not, all versioned cache directories (except defaultDirName) are removed and a new schema file is written. Returns the number of directories removed; 0 means the schema was already current or the cache contained no versioned directories.
Types ¶
Click to show internal directories.
Click to hide internal directories.