workloadidentity

package
v3.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyGuid = "00000000-0000-0000-0000-000000000000" //nolint:revive //FIXME(var-naming)
)

Variables

This section is empty.

Functions

func CalculateCacheExpiryBasedOnTokenExpiry added in v3.0.6

func CalculateCacheExpiryBasedOnTokenExpiry(tokenExpiry time.Time) time.Duration

Types

type Token added in v3.0.6

type Token struct {
	AccessToken string
	ExpiresOn   time.Time
}

type TokenProvider

type TokenProvider interface {
	GetToken(scope string) (*Token, error)
}

func NewWorkloadIdentityTokenProvider

func NewWorkloadIdentityTokenProvider() TokenProvider

type WorkloadIdentityTokenProvider

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

func (WorkloadIdentityTokenProvider) GetToken

func (c WorkloadIdentityTokenProvider) GetToken(scope string) (*Token, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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