token

package
v0.0.0-...-d9f10a2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 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 Token

type Token struct {
	Provider provider.Provider `json:"provider"`
	Oauth2   *oauth2.Token     `json:"oauth2"`
}

func (*Token) GetAccessToken

func (t *Token) GetAccessToken() string

func (*Token) GetExpiry

func (t *Token) GetExpiry() time.Time

func (*Token) Refresh

func (t *Token) Refresh() (*Token, error)

func (*Token) Source

func (t *Token) Source(ctx context.Context) *TokenSource

type TokenSource

type TokenSource struct {
	Oauth2 oauth2.TokenSource
}

Jump to

Keyboard shortcuts

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