credentials

package
v0.19.783 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

Fetch uses the Azure SDK method NewDefaultAzureCredential to walk the chain of authentication mechanisms to get a credential. If running in an Azure VM, it will use the identity assigned to the VM. If running locally, it will the identity you have logged into from your local environment. For more information, see: https://learn.microsoft.com/en-us/azure/developer/go/sdk/authentication/authentication-overview

func FetchEnv

func FetchEnv(ctx context.Context, cfg *Config) (map[string]string, error)

NOTE(jm): for now, we only support static service principal credentials

Types

type Config

type Config struct {
	ServicePrincipal *ServicePrincipalCredentials `` /* 160-byte string literal not displayed */
	UseDefault       bool                         `` /* 136-byte string literal not displayed */
}

func (Config) String

func (c Config) String() string

type ServicePrincipalCredentials

type ServicePrincipalCredentials struct {
	SubscriptionID       string `` /* 138-byte string literal not displayed */
	SubscriptionTenantID string `` /* 173-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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