token

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCredentials

func GetCredentials(auth Identity, log *zap.SugaredLogger) *refreshableTokenCredentials

func GetTokenWrapper

func GetTokenWrapper(base http.RoundTripper, auth Identity, log *zap.SugaredLogger) http.RoundTripper

Types

type ArmoryCloud

type ArmoryCloud struct {
	ClientId       string `yaml:"clientId,omitempty" json:"clientId,omitempty"`
	Secret         string `yaml:"secret,omitempty" json:"secret,omitempty"`
	TokenIssuerUrl string `yaml:"tokenIssuerUrl,omitempty" json:"tokenIssuerUrl,omitempty"`
	Audience       string `yaml:"audience,omitempty" json:"audience,omitempty"`
	Verify         bool   `yaml:"verify" json:"verify"`
}

func DefaultArmoryCloud

func DefaultArmoryCloud() ArmoryCloud

type Command

type Command struct {
	Command string   `yaml:"command,omitempty" json:"command,omitempty"`
	Args    []string `yaml:"args,omitempty" json:"args,omitempty"`
}

type Identity

type Identity struct {
	Token                   string      `yaml:"token,omitempty" json:"token,omitempty"`
	TokenCommand            *Command    `yaml:"tokenCommand,omitempty" json:"tokenCommand,omitempty"`
	Armory                  ArmoryCloud `yaml:"armory,omitempty" json:"armory,omitempty"`
	RefreshIntervalSeconds  int64       `yaml:"refreshIntervalSeconds" json:"refreshIntervalSeconds"`
	ExpirationLeewaySeconds int64       `yaml:"expirationLeewaySeconds" json:"expirationLeewaySeconds"`
}

func DefaultIdentity

func DefaultIdentity() Identity

Jump to

Keyboard shortcuts

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