azure

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WillExpireIn

func WillExpireIn(t time.Time, d time.Duration) bool

WillExpireIn returns true if the Token will expire after the passed time.Duration interval from now, false otherwise.

Types

type Session

type Session struct {
	SubscriptionID string
	TenantID       string
	Authorizer     autorest.Authorizer
	Expires        *time.Time
}

Session info

func GetNewSession

func GetNewSession(ctx context.Context, d *plugin.QueryData, tokenAudience string) (session *Session, err error)

GetNewSession creates an session configured from environment variables/CLI in the order: 1. Client credentials 2. Client certificate 3. Username password 4. MSI 5. CLI

Jump to

Keyboard shortcuts

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