env

package
v1.0.90 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider resolves account selection from environment variables. A configured TAT lookup is consulted only when the dedicated source variable selects it.

func (*Provider) Name

func (p *Provider) Name() string

func (*Provider) ResolveAccount

func (p *Provider) ResolveAccount(ctx context.Context) (*credential.Account, error)

func (*Provider) ResolveToken

func (p *Provider) ResolveToken(ctx context.Context, req credential.TokenSpec) (*credential.Token, error)

func (*Provider) WithTenantAccessTokenLookup added in v1.0.90

func (p *Provider) WithTenantAccessTokenLookup(lookup func(context.Context, string) (*credential.Token, error)) credential.Provider

WithTenantAccessTokenLookup returns an invocation-scoped provider copy with the CLI-owned stored-TAT lookup. The narrow callback keeps account resolution independent from secret storage and avoids exposing a second full Provider.

Jump to

Keyboard shortcuts

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