tokens

package
v1.10.21 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 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

func Fetch(ztsUrl, domain string, svcs []string, tokens []ac.AccessToken) []error {

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