Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigAsMap ¶
GetConfigAsMap will reads the config into a string map array
Types ¶
type Config ¶
type Config struct { CurrentContext string `mapstructure:"current-context"` Contexts []*Context `mapstructure:"contexts"` Users []*User `mapstructure:"users"` }
Config contains the data from the configuration file
type Context ¶
type Context struct { Name string `mapstructure:"name"` TenantID string `mapstructure:"tenantId"` Endpoint string `mapstructure:"endpoint,omitempty"` ClientID string `mapstructure:"clientId,omitempty"` CertificateData string `mapstructure:"certificate-data,omitempty"` SubscriptionID string `mapstructure:"subscriptionId"` Resource string `mapstructure:"resource"` Tokens []adal.Token `mapstructure:"tokens"` }
Context contains a complete Azure configuration spec
func GetAllContexts ¶
GetAllContexts retrieves all available contexts
func GetContext ¶
GetContext retrieves a context by name
func GetCurrentContext ¶
GetCurrentContext retrieves all available contexts
type User ¶
type User struct { Name string `mapstructure:"name"` TenantID string `mapstructure:"tenantId"` CertificateData string `mapstructure:"certificate-data,omitempty"` ClientID string `mapstructure:"clientId,omitempty"` Endpoint string `mapstructure:"endpoint,omitempty"` }
User contains the data for a given identity
Click to show internal directories.
Click to hide internal directories.