creds

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DummyBillingId = "" /* 197-byte string literal not displayed */
View Source
const TestBillingIDVar = "TEST_BILLING_ID"

Variables

This section is empty.

Functions

func NewScopedManagedIdentitySecret

func NewScopedManagedIdentitySecret(
	subscriptionID string,
	tenantID string,
	clientID string,
	name string,
	namespace string,
) *v1.Secret

func NewScopedServicePrincipalCertificateSecret

func NewScopedServicePrincipalCertificateSecret(
	subscriptionID string,
	tenantID string,
	clientID string,
	clientCert string,
	name string,
	namespace string,
) *v1.Secret

func NewScopedServicePrincipalSecret

func NewScopedServicePrincipalSecret(
	subscriptionID string,
	tenantID string,
	clientID string,
	clientSecret string,
	name string,
	namespace string,
) *v1.Secret

Types

type AzureIDs

type AzureIDs struct {
	SubscriptionID   string
	TenantID         string
	BillingInvoiceID string
}

func DummyAzureIDs

func DummyAzureIDs() AzureIDs

func GetCreds

func GetCreds() (azcore.TokenCredential, AzureIDs, error)

type MockTokenCredential

type MockTokenCredential struct{}

func (MockTokenCredential) NewAuthenticationPolicy

func (MockTokenCredential) NewAuthenticationPolicy() policy.Policy

type PolicyFunc

type PolicyFunc func(*policy.Request) (*http.Response, error)

PolicyFunc is a type that implements the Policy interface. Use this type when implementing a stateless policy as a first-class function.

func (PolicyFunc) Do

func (pf PolicyFunc) Do(req *policy.Request) (*http.Response, error)

Do implements the Policy interface on PolicyFunc.

Jump to

Keyboard shortcuts

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