auth

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

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

func New

func New(ctx context.Context, cfg Config) (*Auth, error)

func (*Auth) GetToken

func (a *Auth) GetToken() string

func (*Auth) Run

func (a *Auth) Run(ctx context.Context, wg *sync.WaitGroup)

type Config

type Config struct {
	Provider     Provider
	Logger       logger.Logger
	RenewDisable bool
}

type Provider

type Provider interface {
	GetToken(ctx context.Context) (string, time.Time, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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