launchbox

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Type         CredentialsType
	ClientId     string
	ClientSecret string
	IssuerUrl    string
	AccessToken  string
	RefreshToken string
	Expires      time.Time
}

func (Credentials) Expired

func (c Credentials) Expired() bool

Expired checks if a credential set has expired

type CredentialsProvider

type CredentialsProvider interface {
	Fetch(ctx context.Context) (Credentials, error)
}

type CredentialsType

type CredentialsType string
const (
	ClientCredentialsType CredentialsType = "CLIENT_CREDENTIALS"
	AccessTokenType                       = "ACCESS_TOKEN"
)

type ForbiddenError

type ForbiddenError struct{}

func (*ForbiddenError) Error

func (*ForbiddenError) Error() string

type GenericError

type GenericError struct{}

func (*GenericError) Error

func (*GenericError) Error() string

type ProviderChain

type ProviderChain struct {
}

func NewProviderChain

func NewProviderChain() *ProviderChain

func (*ProviderChain) Resolve

func (pc *ProviderChain) Resolve() *Credentials

type ResourceNotFoundError

type ResourceNotFoundError struct{}

func (*ResourceNotFoundError) Error

func (*ResourceNotFoundError) Error() string

type UnauthorizedError

type UnauthorizedError struct{}

func (*UnauthorizedError) Error

func (*UnauthorizedError) Error() string

Jump to

Keyboard shortcuts

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