Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheIDs ¶
CacheIDs adds cluster IDs to a persistent cache, which can be used for decreasing timeout in getting cluster IDs, for commands that take both cluster names and IDs.
Types ¶
type Cache ¶
type Cache struct {
Endpoints Endpoints `yaml:"endpoints"`
}
Cache is the file structure of the cluster cache file.
type EndpointCache ¶
EndpointCache stores the IDs stored in an endpoint-specific cache, and also its expiry date.
type Endpoints ¶
type Endpoints map[string]EndpointCache
Endpoints stores a map with the keys being API endpoints, and the values being caches.
Click to show internal directories.
Click to hide internal directories.