Documentation
¶
Index ¶
- type AwsIamAuthLoginRequest
- type AzureAuthLoginRequest
- type GCPAuthLoginRequest
- type KubernetesAuthLoginRequest
- type MachineIdentityAuthLoginResponse
- func CallAWSIamAuthLogin(httpClient *resty.Client, request AwsIamAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)
- func CallAzureAuthLogin(httpClient *resty.Client, request AzureAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)
- func CallGCPAuthLogin(httpClient *resty.Client, request GCPAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)
- func CallKubernetesAuthLogin(httpClient *resty.Client, request KubernetesAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)
- func CallOidcAuthLogin(httpClient *resty.Client, request OidcAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)
- func CallRenewAccessToken(httpClient *resty.Client, request RenewAccessTokenRequest) (credential MachineIdentityAuthLoginResponse, e error)
- func CallUniversalAuthLogin(httpClient *resty.Client, request UniversalAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)
- type OidcAuthLoginRequest
- type RenewAccessTokenRequest
- type RevokeAccessTokenRequest
- type RevokeAccessTokenResponse
- type UniversalAuthLoginRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsIamAuthLoginRequest ¶
type AzureAuthLoginRequest ¶
type GCPAuthLoginRequest ¶
type KubernetesAuthLoginRequest ¶
type KubernetesAuthLoginRequest struct {
IdentityID string `json:"identityId"`
JWT string `json:"jwt"`
}
Kubernetes auth:
type MachineIdentityAuthLoginResponse ¶ added in v0.2.0
type MachineIdentityAuthLoginResponse struct {
AccessToken string `json:"accessToken"`
ExpiresIn int64 `json:"expiresIn"`
AccessTokenMaxTTL int64 `json:"accessTokenMaxTTL"`
TokenType string `json:"tokenType"`
}
func CallAWSIamAuthLogin ¶
func CallAWSIamAuthLogin(httpClient *resty.Client, request AwsIamAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)
func CallAzureAuthLogin ¶
func CallAzureAuthLogin(httpClient *resty.Client, request AzureAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)
func CallGCPAuthLogin ¶
func CallGCPAuthLogin(httpClient *resty.Client, request GCPAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)
func CallKubernetesAuthLogin ¶
func CallKubernetesAuthLogin(httpClient *resty.Client, request KubernetesAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)
func CallOidcAuthLogin ¶ added in v0.3.0
func CallOidcAuthLogin(httpClient *resty.Client, request OidcAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)
func CallRenewAccessToken ¶ added in v0.3.4
func CallRenewAccessToken(httpClient *resty.Client, request RenewAccessTokenRequest) (credential MachineIdentityAuthLoginResponse, e error)
func CallUniversalAuthLogin ¶
func CallUniversalAuthLogin(httpClient *resty.Client, request UniversalAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)
type OidcAuthLoginRequest ¶ added in v0.3.0
type RenewAccessTokenRequest ¶ added in v0.3.4
type RenewAccessTokenRequest struct {
AccessToken string `json:"accessToken"`
}
type RevokeAccessTokenRequest ¶ added in v0.5.93
type RevokeAccessTokenRequest struct {
AccessToken string `json:"accessToken"`
}
Revoke access token:
type RevokeAccessTokenResponse ¶ added in v0.5.93
type RevokeAccessTokenResponse struct {
Message string `json:"message"`
}
func CallRevokeAccessToken ¶ added in v0.5.93
func CallRevokeAccessToken(httpClient *resty.Client, request RevokeAccessTokenRequest) (RevokeAccessTokenResponse, error)
type UniversalAuthLoginRequest ¶
type UniversalAuthLoginRequest struct {
ClientID string `json:"clientId"`
ClientSecret string `json:"clientSecret"`
}
Universal auth:
Click to show internal directories.
Click to hide internal directories.