Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { Login(context.Context) (authToken string, err error) GetProviderString() string GetAccessToken() string }
Provider is a common interface for managing auth tokens with the different third party authenticators
func NewProvider ¶
NewProvider creates a new provider based on the provider identifier
type UnknownProvider ¶
type UnknownProvider struct { }
UnknownProvider is a null provider for when a real one cannot be retrieved
func (*UnknownProvider) GetAccessToken ¶
func (u *UnknownProvider) GetAccessToken() string
GetAccessToken will return an empty access token
func (*UnknownProvider) GetProviderString ¶
func (u *UnknownProvider) GetProviderString() string
GetProviderString will return an identifying string for itself
Click to show internal directories.
Click to hide internal directories.