tokenstore

package
v0.0.0-...-bfaf2c4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SourceOption

type SourceOption func(*TokenStore)

func WithTokenSource

func WithTokenSource(registry string, tokenSource oauth2.TokenSource) SourceOption

type TokenStore

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

func New

func New(options ...SourceOption) *TokenStore

func (*TokenStore) GetAuth

func (t *TokenStore) GetAuth(ctx context.Context, image string) (*registry.Auth, error)

type WithSource

type WithSource struct {
	Source   oauth2.TokenSource
	Registry string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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