authmanager

package
v0.0.0-...-afe3fbd Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthManager

type AuthManager struct {
	Reauth *ReauthenticationState
	// contains filtered or unexported fields
}

func New

func New(reqstr requester.Requester) *AuthManager

func (*AuthManager) AccessToken

func (a *AuthManager) AccessToken() string

func (*AuthManager) RefreshToken

func (a *AuthManager) RefreshToken() (accessToken string, err error)

func (*AuthManager) SetAccessToken

func (a *AuthManager) SetAccessToken(accTok string)

func (*AuthManager) SetCreds

func (a *AuthManager) SetCreds(login, password string)

func (*AuthManager) SetRefreshToken

func (a *AuthManager) SetRefreshToken(refTok string)

type ReauthenticationState

type ReauthenticationState struct {
	// contains filtered or unexported fields
}

func (*ReauthenticationState) Checkpoint

func (sr *ReauthenticationState) Checkpoint()

func (*ReauthenticationState) Needed

func (sr *ReauthenticationState) Needed() bool

Jump to

Keyboard shortcuts

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