Documentation
¶
Overview ¶
Package cache provides a lightweight in-memory app title→slug and workspace name→slug cache for CLI lookups. Entries live for the duration of a single command invocation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is an in-memory app title→slug and workspace name→slug mapping. All lookups and mutations are case-insensitive (keys are stored lowercase).
func (*Cache) LookupWorkspace ¶
LookupWorkspace returns the workspace slug stored for the given name, if any.
func (*Cache) SetWorkspace ¶
SetWorkspace stores a name→slug mapping.
Click to show internal directories.
Click to hide internal directories.