tokens

package
v1.10.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

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

func TokenDirs

func TokenDirs(root string, tokens []config.AccessToken) []string

TokenDirs returns an array of token folders with domain in them

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL