Documentation ¶
Index ¶
- func IAMTokenEndpoint(apiEndpoint string) string
- type IAMAuthRepository
- func (auth *IAMAuthRepository) AuthenticateAPIKey(apiKey string) error
- func (auth *IAMAuthRepository) AuthenticatePassword(username string, password string) error
- func (auth *IAMAuthRepository) AuthenticateSSO(passcode string) error
- func (auth *IAMAuthRepository) LinkAccounts(updatedAccounts core_config.AccountsInfo) error
- func (auth *IAMAuthRepository) RefreshToken() (string, error)
- type IAMError
- type IAMTokenResponse
- type InvalidTokenError
- type ServerError
- type UAAError
- type UAARepository
- type UAATokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IAMTokenEndpoint ¶
Types ¶
type IAMAuthRepository ¶
type IAMAuthRepository struct {
// contains filtered or unexported fields
}
func NewIAMAuthRepository ¶
func NewIAMAuthRepository(config core_config.ReadWriter, client *rest.Client) *IAMAuthRepository
func (*IAMAuthRepository) AuthenticateAPIKey ¶
func (auth *IAMAuthRepository) AuthenticateAPIKey(apiKey string) error
func (*IAMAuthRepository) AuthenticatePassword ¶
func (auth *IAMAuthRepository) AuthenticatePassword(username string, password string) error
func (*IAMAuthRepository) AuthenticateSSO ¶
func (auth *IAMAuthRepository) AuthenticateSSO(passcode string) error
func (*IAMAuthRepository) LinkAccounts ¶
func (auth *IAMAuthRepository) LinkAccounts(updatedAccounts core_config.AccountsInfo) error
func (*IAMAuthRepository) RefreshToken ¶
func (auth *IAMAuthRepository) RefreshToken() (string, error)
type IAMError ¶
type IAMError struct { ErrorCode string `json:"errorCode"` ErrorMessage string `json:"errorMessage"` ErrorDetails string `json:"errorDetails"` }
func (IAMError) Description ¶
type IAMTokenResponse ¶
type InvalidTokenError ¶
type InvalidTokenError struct {
Description string
}
func NewInvalidTokenError ¶
func NewInvalidTokenError(description string) *InvalidTokenError
func (*InvalidTokenError) Error ¶
func (e *InvalidTokenError) Error() string
type ServerError ¶
func NewServerError ¶
func NewServerError(statusCode int, errorCode string, description string) *ServerError
func (*ServerError) Error ¶
func (s *ServerError) Error() string
type UAARepository ¶
type UAARepository struct {
// contains filtered or unexported fields
}
func NewUAARepository ¶
func NewUAARepository(config core_config.ReadWriter, client *rest.Client) *UAARepository
func (*UAARepository) AuthenticateAPIKey ¶
func (auth *UAARepository) AuthenticateAPIKey(apiKey string) error
func (*UAARepository) AuthenticatePassword ¶
func (auth *UAARepository) AuthenticatePassword(username string, password string) error
func (*UAARepository) AuthenticateSSO ¶
func (auth *UAARepository) AuthenticateSSO(passcode string) error
func (*UAARepository) RefreshToken ¶
func (auth *UAARepository) RefreshToken() (string, error)
type UAATokenResponse ¶
Click to show internal directories.
Click to hide internal directories.