Documentation
¶
Index ¶
Constants ¶
View Source
const ( ContextProdction = "production" ContextPlayground = "playground" ContextDevelopment = "development" )
Variables ¶
View Source
var ( RecommendedConfigDir = path.Join(homedir.HomeDir(), recommendedHomeDir) RecommendedHomeFile = path.Join(RecommendedConfigDir, recommendedFileName) ValidContexts = []string{ContextProdction, ContextPlayground, ContextDevelopment} )
Functions ¶
func IsValidContext ¶
func PersisterForRadix ¶
func PersisterForRadix(radixConfig RadixConfigAccess) restclient.AuthProviderConfigPersister
Types ¶
type CustomConfig ¶
type CustomConfig struct {
Context string `json:"Context"`
}
type RadixConfig ¶
type RadixConfig struct { CustomConfig *CustomConfig `json:"customConfig"` SessionConfig *SessionConfig `json:"sessionConfig"` }
type RadixConfigAccess ¶
type RadixConfigAccess struct { }
func (RadixConfigAccess) GetExplicitFile ¶
func (c RadixConfigAccess) GetExplicitFile() string
func (RadixConfigAccess) GetStartingConfig ¶
func (c RadixConfigAccess) GetStartingConfig() *clientcmdapi.AuthProviderConfig
type SessionConfig ¶
type SessionConfig struct { ClientID string `json:"clientID"` TenantID string `json:"tenantID"` APIServerID string `json:"apiServerID"` RefreshToken string `json:"refreshToken"` AccessToken string `json:"accessToken"` ExpiresIn json.Number `json:"expiresIn"` ExpiresOn json.Number `json:"expiresOn"` Environment string `json:"environment"` }
Click to show internal directories.
Click to hide internal directories.