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
Click to show internal directories.
Click to hide internal directories.