Documentation ¶
Index ¶
- func GetAzureCliRunner() *exec.Cmd
- func GetConfigInfo(authConfig auth.AuthorizerConfig, subscriptionId string) (string, error)
- func GetSubscriptions() ([]string, error)
- func GetTokenFromCLI(resource string, subscription string) (*cli.Token, error)
- func RegisterAksCluster(resourceGroup, clusterName string, subscriptionOrEmpty string) error
- type CliAuthConfig
- type EnvAuthConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAzureCliRunner ¶
func GetConfigInfo ¶
func GetConfigInfo(authConfig auth.AuthorizerConfig, subscriptionId string) (string, error)
GetConfigInfo returns: Subscription Displayname, error
func GetSubscriptions ¶
func GetTokenFromCLI ¶
Get Codes from github.com/azure/go-autorest/autorest/azure/cli/token.go GetTokenFromCLI gets a token using Azure CLI 2.0 for local development scenarios.
func RegisterAksCluster ¶
Types ¶
type CliAuthConfig ¶
type CliAuthConfig struct {
// contains filtered or unexported fields
}
func NewCliAuthConfig ¶
func NewCliAuthConfig(subscription string) (*CliAuthConfig, error)
NewCliAuthConfig subscription support empty string
func (*CliAuthConfig) Authorizer ¶
func (c *CliAuthConfig) Authorizer() (autorest.Authorizer, error)
type EnvAuthConfig ¶
type EnvAuthConfig struct {
// contains filtered or unexported fields
}
func NewEnvAuthConfig ¶
func NewEnvAuthConfig() (*EnvAuthConfig, error)
func (*EnvAuthConfig) Authorizer ¶
func (e *EnvAuthConfig) Authorizer() (autorest.Authorizer, error)
Click to show internal directories.
Click to hide internal directories.