azure_service

package
v0.0.0-...-a1261cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAzureCliRunner

func GetAzureCliRunner() *exec.Cmd

func GetConfigInfo

func GetConfigInfo(authConfig auth.AuthorizerConfig, subscriptionId string) (string, error)

GetConfigInfo returns: Subscription Displayname, error

func GetSubscriptions

func GetSubscriptions() ([]string, error)

func GetTokenFromCLI

func GetTokenFromCLI(resource string, subscription string) (*cli.Token, error)

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

func RegisterAksCluster(resourceGroup, clusterName string, subscriptionOrEmpty string) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL