credential

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package credential holds the credential type the exchange hands out and its issuers produce. It is a leaf so an issuer does not depend on the handler that serves it.

Index

Constants

View Source
const MinServeLifetime = 20 * time.Minute

MinServeLifetime is the least remaining lifetime a cached Token is served with, on both sides of the exchange, so a transfer never starts on a token about to expire. There is no mid-transfer refresh. A token with less left is still returned to the caller that asked for it, but not cached.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	AccessToken string
	Expiry      time.Time
}

Token is a storage credential and when it expires.

Jump to

Keyboard shortcuts

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