azure

package
v0.0.0-...-85f76d0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 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