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