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 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
Click to show internal directories.
Click to hide internal directories.