gcpcommon

package
v1.37.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRetryableAuthBroker = errors.New("retryable error from auth broker")
)

Functions

func RetryErrorFunc

func RetryErrorFunc(err error) bool

Types

type AuthBrokerToken

type AuthBrokerToken struct {
	AccessToken string    `json:"access_token"`
	Expiry      time.Time `json:"expiry"`
	TokenType   string    `json:"token_type"`
}

type AuthBrokerTokenSource

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

func NewAuthBrokerTokenSource

func NewAuthBrokerTokenSource(endpoint string) *AuthBrokerTokenSource

func (*AuthBrokerTokenSource) Token

func (b *AuthBrokerTokenSource) Token() (*oauth2.Token, error)

Jump to

Keyboard shortcuts

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