Documentation
¶
Index ¶
- func CacheDir() (string, error)
- func ClearAll() error
- func ClearRefreshToken() error
- func ClearRefreshTokenFile() error
- func ClearRefreshTokenKeyring() error
- func ClearSession() error
- func ConfigDir() (string, error)
- func ConfigFilePath() (string, error)
- func CredentialsFilePath() (string, error)
- func KeyringAvailable() bool
- func LoadRefreshToken() (string, string, error)
- func LoadRefreshTokenWithPreferredBackend(preferred string) (string, string, error)
- func LockFilePath() (string, error)
- func ResetKeyring()
- func ResetKeyringAvailability()
- func SaveRefreshToken(token string) (string, error)
- func SaveSession(session Session) error
- func SessionFilePath() (string, error)
- func SetKeyringBackend(backend KeyringBackend)
- func WithLock[T any](ctx context.Context, fn func() (T, error)) (T, error)
- func WriteFileAtomically(path string, data []byte, perm fs.FileMode) error
- type Identity
- type KeyringBackend
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearRefreshToken ¶
func ClearRefreshToken() error
func ClearRefreshTokenFile ¶
func ClearRefreshTokenFile() error
func ClearRefreshTokenKeyring ¶
func ClearRefreshTokenKeyring() error
func ClearSession ¶
func ClearSession() error
func ConfigFilePath ¶
func CredentialsFilePath ¶
func KeyringAvailable ¶
func KeyringAvailable() bool
func LoadRefreshToken ¶
func LockFilePath ¶
func ResetKeyring ¶
func ResetKeyring()
func ResetKeyringAvailability ¶
func ResetKeyringAvailability()
func SaveRefreshToken ¶
func SaveSession ¶
func SessionFilePath ¶
func SetKeyringBackend ¶
func SetKeyringBackend(backend KeyringBackend)
Types ¶
type KeyringBackend ¶
type Session ¶
type Session struct {
IssuerURL string `json:"issuer_url"`
ClientID string `json:"client_id"`
Audience string `json:"audience,omitempty"`
Scopes []string `json:"scopes,omitempty"`
GrantedScopes []string `json:"granted_scopes,omitempty"`
AccessToken string `json:"access_token"`
TokenType string `json:"token_type,omitempty"`
Expiry time.Time `json:"expiry,omitempty"`
IDToken string `json:"id_token,omitempty"`
AuthorizationURL string `json:"authorization_url,omitempty"`
TokenURL string `json:"token_url,omitempty"`
UserInfoURL string `json:"userinfo_url,omitempty"`
RevocationURL string `json:"revocation_url,omitempty"`
JWKSURL string `json:"jwks_url,omitempty"`
Algorithms []string `json:"algorithms,omitempty"`
StorageBackend string `json:"storage_backend,omitempty"`
Identity Identity `json:"identity,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
}
func LoadSession ¶
Click to show internal directories.
Click to hide internal directories.