Documentation
¶
Overview ¶
Package token obtains, caches, and provides an ID token to authenticate to the holos api server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheDir = expandHomedir(filepath.Join("~", ".holos", "cache"))
Functions ¶
Types ¶
type Config ¶
type Token ¶
type Token struct {
// Bearer is the oidc token for the authorization: bearer header
Bearer string
// Expiry is the expiration time of the id token
Expiry time.Time
// Pretty is the JSON encoding of the token claims
Pretty string
// contains filtered or unexported fields
}
Token represents an authorization bearer token. Token is useful as an output dto of the Tokener service use case.
Click to show internal directories.
Click to hide internal directories.