Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultConfigPath ¶
GetDefaultConfigPath returns the default configuration file path
Types ¶
type Config ¶
type Config struct { Oscar map[string]*cluster.Cluster `json:"oscar" binding:"required"` Default string `json:"default,omitempty"` }
Config stores the configuration of oscar-cli
func ReadConfig ¶
ReadConfig reads the configuration file
func (*Config) AddCluster ¶
func (config *Config) AddCluster(configPath string, id string, endpoint string, authUser string, authPassword string, oidcAccountName string, sslVerify bool) error
AddCluster adds a new cluster to the config
func (*Config) CheckCluster ¶
CheckCluster checks if a cluster exists and return error if not
func (*Config) RemoveCluster ¶
RemoveCluster removes a cluster from the config
func (*Config) SetDefault ¶
SetDefault set a default cluster in the config file
Click to show internal directories.
Click to hide internal directories.