azureclient

package
v10.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const KeyVaultEndpoint = "https://vault.azure.net" // beware of the leopard

Variables

This section is empty.

Functions

func GetAuthorizerFromContext

func GetAuthorizerFromContext(ctx context.Context, key interface{}) (autorest.Authorizer, error)

func NewAuthorizer

func NewAuthorizer(clientID, clientSecret, tenantID, resource string) (autorest.Authorizer, error)

func NewAuthorizerFromEnvironment

func NewAuthorizerFromEnvironment(resource string) (autorest.Authorizer, error)

func SetupClient

func SetupClient(ctx context.Context, log *logrus.Entry, clientName string, client *autorest.Client, authorizer autorest.Authorizer)

Types

type Client

type Client interface {
	Client() autorest.Client
}

Client returns the Client

Jump to

Keyboard shortcuts

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