oauth

package
v0.0.0-...-980806f Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetAuthorizationToken() (Token, error)
}

func NewOauthClient

func NewOauthClient(httpClient *http.Client, secretClient SecretInterface, secretName string) Client

type SecretInterface

type SecretInterface interface {
	Get(name string, options metav1.GetOptions) (*v1.Secret, error)
}

type Token

type Token struct {
	AccessToken string `json:"access_token"`
	Expiration  int64  `json:"expires_in"`
}

func (Token) EmptyOrExpired

func (token Token) EmptyOrExpired() bool

Jump to

Keyboard shortcuts

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