Documentation
¶
Index ¶
Constants ¶
View Source
const ( AppName = "cb365" AppVersion = "0.1.0-dev" )
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
ConfigPath returns the full path to the config file
Types ¶
type Config ¶
type Config struct {
ActiveProfile string `json:"active_profile"`
Profiles map[string]*Profile `json:"profiles"`
Settings Settings `json:"settings"`
}
Config represents the cb365 configuration file
func (*Config) ActiveProfileConfig ¶
ActiveProfileConfig returns the currently active profile
func (*Config) SetActiveProfile ¶
SetActiveProfile switches the active profile
type Profile ¶
type Profile struct {
Name string `json:"name"`
TenantID string `json:"tenant_id"`
ClientID string `json:"client_id"`
AuthMode AuthMode `json:"auth_mode"`
Scopes []string `json:"scopes,omitempty"`
Username string `json:"username,omitempty"`
Active bool `json:"active,omitempty"`
}
Profile represents a configured authentication profile
Click to show internal directories.
Click to hide internal directories.