Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyringStore ¶
type KeyringStore struct {
// contains filtered or unexported fields
}
KeyringStore stores credentials in the OS keyring.
func (*KeyringStore) DeleteCredentials ¶
func (s *KeyringStore) DeleteCredentials(profile string) error
DeleteCredentials removes credentials from the keyring.
func (*KeyringStore) GetCredentials ¶
func (s *KeyringStore) GetCredentials(profile string) (string, string, error)
GetCredentials retrieves credentials from the keyring.
func (*KeyringStore) SetCredentials ¶
func (s *KeyringStore) SetCredentials(profile, clientID, clientSecret string) error
SetCredentials stores credentials in the keyring.
type Store ¶
type Store interface {
GetCredentials(profile string) (clientID, clientSecret string, err error)
SetCredentials(profile, clientID, clientSecret string) error
DeleteCredentials(profile string) error
}
Store provides credential storage.
type Token ¶
type Token struct {
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresIn int `json:"expires_in"`
Scope string `json:"scope"`
ExpiresAt time.Time
}
Token represents an OAuth2 access token.
func GetAccessToken ¶
GetAccessToken retrieves an access token using client credentials.
Click to show internal directories.
Click to hide internal directories.