Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidToken ¶
IsValidToken checks to see if the token is valid and has not expired
Types ¶
type CachedTokenProvider ¶
type CachedTokenProvider interface { GetTokens() (*authenticator.TokenResponse, error) // contains filtered or unexported methods }
type CloudIssuedTokenProvider ¶
type CloudIssuedTokenProvider struct { Options Authenticator authenticator.Authenticator }
type FileCached ¶
type FileCached struct {
// contains filtered or unexported fields
}
type IssuedTokenProvider ¶
type IssuedTokenProvider interface {
// contains filtered or unexported methods
}
type KeyringCached ¶
type KeyringCached struct {
// contains filtered or unexported fields
}
type KeyringCachedTokenProvider ¶
type KeyringCachedTokenProvider struct {
// contains filtered or unexported fields
}
func NewKeyringCachedTokenProvider ¶
func NewKeyringCachedTokenProvider(keyringCached *KeyringProvider) *KeyringCachedTokenProvider
func (*KeyringCachedTokenProvider) GetTokens ¶
func (k *KeyringCachedTokenProvider) GetTokens() (*authenticator.TokenResponse, error)
type KeyringProvider ¶
type KeyringProvider interface {
// contains filtered or unexported methods
}
type Options ¶
type Options struct { ClientID string `json:"client_id"` AuthURL string NoBrowser bool genericiooptions.IOStreams }
type Provider ¶
type Provider interface { Login(ctx context.Context) (*authenticator.UserInfoResponse, string, error) Logout(ctx context.Context) error }
func NewTokenProvider ¶
NewTokenProvider default constructor.
type TokenProvider ¶
type TokenProvider struct {
// contains filtered or unexported fields
}
func (*TokenProvider) Login ¶
func (p *TokenProvider) Login(ctx context.Context) (*authenticator.UserInfoResponse, string, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.