Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AWSConfig *viper.Viper AWSConfigPath string Jeeves *YamlConfigFile )
Functions ¶
func CheckAWSLogin ¶
func GetSSOSessionCredentials ¶ added in v0.0.10
func GetSSOSessionCredentials(profile string) (aws.Credentials, error)
Returns the current session credentials from a valid SSO session **The client MUST be logged in via `jeeves login` before this function** **will return valid credentials**
func LoadAWSConfig ¶ added in v0.0.11
func LoadAWSConfig() error
Loads the .aws/config file into a Viper struct
func LoadJeevesConfig ¶ added in v0.0.11
func LoadJeevesConfig() error
Loads the .jeeves.yaml config file, creates it if it does not exist
Types ¶
type AWSSSOConfig ¶ added in v0.0.10
type JeevesConfig ¶ added in v0.0.11
type JeevesSSO ¶ added in v0.0.11
type JeevesSSO struct { // The start url for SSO Start string `yaml:"Start"` }
type YamlConfigFile ¶ added in v0.0.11
type YamlConfigFile struct { ConfigSettings JeevesConfig // contains filtered or unexported fields }
func (*YamlConfigFile) ReadInConfig ¶ added in v0.0.11
func (cfg *YamlConfigFile) ReadInConfig() error
func (*YamlConfigFile) SetConfigFile ¶ added in v0.0.11
func (cfg *YamlConfigFile) SetConfigFile(filepath string)
func (*YamlConfigFile) WriteConfig ¶ added in v0.0.11
func (cfg *YamlConfigFile) WriteConfig() error
Click to show internal directories.
Click to hide internal directories.