Documentation ¶
Overview ¶
Package gsmconfig is responsible for all functions pertaining to the configuration of GSM
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CfgDir string
CfgDir should be set to the directory containing all GSM configuration files
Functions ¶
func CreateConfig ¶
CreateConfig creates a new config
func GetConfigPath ¶
GetConfigPath returns the file path to a config file
func GetScopes ¶
GetScopes returns the scopes of a config file so they can be easily added in the Admin Console
func LoadConfig ¶
LoadConfig sets the default config (.gsm.yaml) and renames the old one to <name>.yaml
Types ¶
type GSMConfig ¶
type GSMConfig struct { Name string `yaml:"name,omitempty"` CredentialsFile string `yaml:"credentialsFile,omitempty"` ServiceAccount string `yaml:"serviceAccount,omitempty"` Mode string `yaml:"mode,omitempty"` Subject string `yaml:"subject,omitempty"` LogFile string `yaml:"logFile,omitempty"` Scopes []string `yaml:"scopes,omitempty"` Threads int `yaml:"threads,omitempty"` StandardDelay int `yaml:"standardDelay,omitempty"` Default bool `yaml:"default,omitempty"` }
GSMConfig represents a GSM configuration
func ListConfigs ¶
ListConfigs lists the config files in the config dir
Click to show internal directories.
Click to hide internal directories.