Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetProfileNames ¶ added in v0.2.2
func GetProfileNames() []string
Types ¶
type AuthCodeCredentials ¶ added in v0.1.2
type AuthCodeCredentials struct { BaseCredentials `mapstructure:",squash"` ClientSecret string `mapstructure:"client_secret"` }
func (AuthCodeCredentials) Login ¶ added in v0.1.2
func (c AuthCodeCredentials) Login() *internal.TokenSet
type BaseCredentials ¶ added in v0.1.0
type BaseCredentials struct { LoginType string `mapstructure:"login_type"` Issuer string `mapstructure:"issuer"` ClientId string `mapstructure:"client_id"` }
BaseCredentials is the super-struct of all credential structs
type ClientCredentials ¶ added in v0.1.2
type ClientCredentials struct { BaseCredentials `mapstructure:",squash"` ClientSecret string `mapstructure:"client_secret"` }
func (ClientCredentials) Login ¶ added in v0.1.2
func (c ClientCredentials) Login() *internal.TokenSet
type Credentials ¶ added in v0.1.0
Credentials is an interface with login method
func GetProfile ¶ added in v0.1.0
func GetProfile(profileID string) Credentials
GetProfile loads profiles from config
type PasswordCredentials ¶ added in v0.1.2
type PasswordCredentials struct { BaseCredentials `mapstructure:",squash"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` }
func (PasswordCredentials) Login ¶ added in v0.1.2
func (c PasswordCredentials) Login() *internal.TokenSet
type RefreshCredentials ¶ added in v0.1.2
type RefreshCredentials struct { BaseCredentials `mapstructure:",squash"` RefreshToken string `mapstructure:"refresh_token"` }
func (RefreshCredentials) Login ¶ added in v0.1.2
func (c RefreshCredentials) Login() *internal.TokenSet
Click to show internal directories.
Click to hide internal directories.