Versions in this module Expand all Collapse all v0 v0.99.1 Mar 18, 2022 Changes in this version + var ErrNoAuthenticationData = errors.New("authentication data is not available") + var ErrUnsupportedAuthData = errors.New("authentication data is not usable") + type KeyringStore struct + func NewKeyringStore(kr keyring.Keyring) (*KeyringStore, error) + func (f *KeyringStore) LoadGrant(audience string) (*oauth2.AuthorizationGrant, error) + func (f *KeyringStore) Logout() error + func (f *KeyringStore) SaveGrant(audience string, grant oauth2.AuthorizationGrant) error + func (f *KeyringStore) WhoAmI(audience string) (string, error) + type MemoryStore struct + func (f *MemoryStore) LoadGrant(audience string) (*oauth2.AuthorizationGrant, error) + func (f *MemoryStore) Logout() error + func (f *MemoryStore) SaveGrant(audience string, grant oauth2.AuthorizationGrant) error + func (f *MemoryStore) WhoAmI(audience string) (string, error) + type Store interface + LoadGrant func(audience string) (*oauth2.AuthorizationGrant, error) + Logout func() error + SaveGrant func(audience string, grant oauth2.AuthorizationGrant) error + WhoAmI func(audience string) (string, error) + func NewMemoryStore() Store