Documentation
¶
Overview ¶
Package cache provides simple file-backed caching for flow.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveStatus ¶
func SaveStatus(path string, c StatusCache) error
SaveStatus writes the status cache to disk as JSON.
Types ¶
type StatusCache ¶
type StatusCache map[string]StatusEntry
StatusCache maps workspace IDs to their cached status.
func LoadStatus ¶
func LoadStatus(path string) StatusCache
LoadStatus reads the status cache from disk. Returns an empty cache if the file doesn't exist or can't be parsed.
type StatusEntry ¶
StatusEntry holds a cached status for a single workspace.
Click to show internal directories.
Click to hide internal directories.