env

package
v1.0.100 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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