instancemetadata

package
v0.0.0-...-823d357 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceMetadata

type InstanceMetadata interface {
	Hostname() string
	TenantID() string
	SubscriptionID() string
	Location() string
	ResourceGroup() string
	Environment() *azureclient.AROEnvironment
}

func New

func New(ctx context.Context, log *logrus.Entry, isLocalDevelopmentMode bool) (InstanceMetadata, error)

New returns a new InstanceMetadata for the given mode, environment, and deployment system

func NewDev

func NewDev(checkEnv bool) (InstanceMetadata, error)

type ServicePrincipalToken

type ServicePrincipalToken interface {
	RefreshWithContext(context.Context) error
	OAuthToken() string
}

Jump to

Keyboard shortcuts

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