tokensource

package
v0.0.0-...-7ae9821 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOnlyACRRegistriesAllowed = errors.New("forbidden registry. only .azurecr.io registries allowed")

Functions

func NewACRTokenSource

func NewACRTokenSource(ctx context.Context, registryName string, options ...AcrOption) oauth2.TokenSource

Types

type AcrOption

type AcrOption func(*AcrTokenSource)

func WithCredentialOption

func WithCredentialOption(cred azcore.TokenCredential) AcrOption

func WithHttpClient

func WithHttpClient(client *http.Client) AcrOption

type AcrTokenSource

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

func (*AcrTokenSource) Token

func (s *AcrTokenSource) Token() (*oauth2.Token, error)

Jump to

Keyboard shortcuts

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