Documentation ¶
Overview ¶
Package auth ...
Package auth ...
Package auth ...
Index ¶
- Constants
- type ContextCredentialsFactory
- func (ccf *ContextCredentialsFactory) ForIAMAPIKey(iamAccountID, apiKey string, logger *zap.Logger) (provider.ContextCredentials, error)
- func (ccf *ContextCredentialsFactory) ForIAMAccessToken(apiKey string, logger *zap.Logger) (provider.ContextCredentials, error)
- func (ccf *ContextCredentialsFactory) ForIaaSAPIKey(iamAccountID, userid, apikey string, logger *zap.Logger) (provider.ContextCredentials, error)
- func (ccf *ContextCredentialsFactory) ForRefreshToken(refreshToken string, logger *zap.Logger) (provider.ContextCredentials, error)
- func (ccf *ContextCredentialsFactory) UpdateAPIKey(apiKey string, logger *zap.Logger) error
Constants ¶
View Source
const ( // IMSToken is an IMS user ID and token IMSToken = provider.AuthType("IMS_TOKEN") // IAMAccessToken ... IAMAccessToken = provider.AuthType("IAM_ACCESS_TOKEN") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextCredentialsFactory ¶ added in v1.1.0
type ContextCredentialsFactory struct {
TokenExchangeService iam.TokenExchangeService
}
ContextCredentialsFactory ...
func NewContextCredentialsFactory ¶ added in v1.1.0
func NewContextCredentialsFactory(authConfig *iam.AuthConfiguration) (*ContextCredentialsFactory, error)
NewContextCredentialsFactory ...
func (*ContextCredentialsFactory) ForIAMAPIKey ¶ added in v1.1.0
func (ccf *ContextCredentialsFactory) ForIAMAPIKey(iamAccountID, apiKey string, logger *zap.Logger) (provider.ContextCredentials, error)
ForIAMAPIKey ...
func (*ContextCredentialsFactory) ForIAMAccessToken ¶ added in v1.1.0
func (ccf *ContextCredentialsFactory) ForIAMAccessToken(apiKey string, logger *zap.Logger) (provider.ContextCredentials, error)
ForIAMAccessToken ...
func (*ContextCredentialsFactory) ForIaaSAPIKey ¶ added in v1.1.0
func (ccf *ContextCredentialsFactory) ForIaaSAPIKey(iamAccountID, userid, apikey string, logger *zap.Logger) (provider.ContextCredentials, error)
ForIaaSAPIKey ...
func (*ContextCredentialsFactory) ForRefreshToken ¶ added in v1.1.0
func (ccf *ContextCredentialsFactory) ForRefreshToken(refreshToken string, logger *zap.Logger) (provider.ContextCredentials, error)
ForRefreshToken ...
func (*ContextCredentialsFactory) UpdateAPIKey ¶
func (ccf *ContextCredentialsFactory) UpdateAPIKey(apiKey string, logger *zap.Logger) error
UpdateAPIKey ...
Click to show internal directories.
Click to hide internal directories.