Documentation
¶
Overview ¶
Package config stores local configuration used by the Podmin CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
ClusterID string `json:"clusterID"`
Provider string `json:"provider"`
Region string `json:"region"`
Bucket string `json:"bucket"`
Profile string `json:"profile,omitempty"`
SecretsProvider string `json:"secretsProvider"`
}
Context identifies a connected cluster.
type State ¶
type State struct {
Current string `json:"current,omitempty"`
Contexts map[string]Context `json:"contexts"`
}
State is the complete local context configuration.
type Store ¶
type Store struct{ Path string }
Store persists context state in one private file.
func DefaultStore ¶
DefaultStore returns a store at the standard configuration path.
Click to show internal directories.
Click to hide internal directories.