imds

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(ctx context.Context, clientID string)

Check performs sanity check on Azure client

func CurlIMDSMetadataInstanceEndpoint

func CurlIMDSMetadataInstanceEndpoint() (string, error)

CurlIMDSMetadataInstanceEndpoint performs get request to IMDS metadata instance endpoint and returns the result

func GetTokenFromIMDS

func GetTokenFromIMDS(resourceName string) (*adal.Token, error)

GetTokenFromIMDS get service principal token for the resource

func GetTokenFromIMDSWithUserAssignedID

func GetTokenFromIMDSWithUserAssignedID(resourceName string, identityClientID string) (*adal.Token, error)

GetTokenFromIMDSWithUserAssignedID receives resource and identity client ID and returns the service principal token

Types

This section is empty.

Jump to

Keyboard shortcuts

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