auth

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator func(apiKey, region string) (Credentials, error)

func New

func New(client *http.Client) Authenticator

type Credentials

type Credentials struct {
	IAMAccessToken  string
	IAMRefreshToken string
	UAAAccessToken  string
	UAARefreshToken string
}

func (*Credentials) MarshalSecret

func (c *Credentials) MarshalSecret() map[string][]byte

func (*Credentials) UnmarshalSecret

func (c *Credentials) UnmarshalSecret(secretData map[string][]byte)

type InvalidConfigError

type InvalidConfigError struct {
	Err error
}

func (InvalidConfigError) Error

func (i InvalidConfigError) Error() string

Jump to

Keyboard shortcuts

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