Documentation ¶
Index ¶
- Variables
- type JSONStore
- func (j JSONStore) GetClientCredentials() (clientID, clientSecret string, err error)
- func (j JSONStore) GetToken() (accessToken, refreshToken string, expiry time.Time, err error)
- func (j JSONStore) HasCredentials() (bool, error)
- func (j JSONStore) UpdateToken(accessToken, refreshToken string, expiry time.Time) error
- type Store
- type VaultStore
- func (v VaultStore) GetClientCredentials() (clientID, clientSecret string, err error)
- func (v VaultStore) GetToken() (accessToken, refreshToken string, expiry time.Time, err error)
- func (v VaultStore) HasCredentials() (bool, error)
- func (v VaultStore) UpdateToken(accessToken, refreshToken string, expiry time.Time) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingKey = errors.New("missing key")
Functions ¶
This section is empty.
Types ¶
type JSONStore ¶
type JSONStore struct {
// contains filtered or unexported fields
}
func NewJSONStore ¶
func (JSONStore) GetClientCredentials ¶
func (JSONStore) HasCredentials ¶
type VaultStore ¶
type VaultStore struct {
// contains filtered or unexported fields
}
func NewVaultStore ¶
func NewVaultStore(vaultKey string) (VaultStore, error)
func (VaultStore) GetClientCredentials ¶
func (v VaultStore) GetClientCredentials() (clientID, clientSecret string, err error)
func (VaultStore) GetToken ¶
func (v VaultStore) GetToken() (accessToken, refreshToken string, expiry time.Time, err error)
func (VaultStore) HasCredentials ¶
func (v VaultStore) HasCredentials() (bool, error)
func (VaultStore) UpdateToken ¶
func (v VaultStore) UpdateToken(accessToken, refreshToken string, expiry time.Time) (err error)
Click to show internal directories.
Click to hide internal directories.