Documentation ¶
Index ¶
Constants ¶
View Source
const USER_AGENT = "User-Agent"
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶
func Fetch(opts *config.TokenOptions) []error
Fetch retrieves the configured set of access tokens from the ZTS Server
func ToBeRefreshed ¶
func ToBeRefreshed(tokenDir string, tokens []config.AccessToken) ([]config.AccessToken, []error)
ToBeRefreshed looks into /var/lib/sia/tokens folder and returns the list of tokens whose age is half of their validity
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.