api

package
v0.5.99 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsIamAuthLoginRequest

type AwsIamAuthLoginRequest struct {
	HTTPRequestMethod string `json:"iamHttpRequestMethod"`
	IamRequestBody    string `json:"iamRequestBody"`
	IamRequestHeaders string `json:"iamRequestHeaders"`
	IdentityId        string `json:"identityId"`
}

type AzureAuthLoginRequest

type AzureAuthLoginRequest struct {
	IdentityID string `json:"identityId"`
	JWT        string `json:"jwt"`
}

type GCPAuthLoginRequest

type GCPAuthLoginRequest struct {
	IdentityID string `json:"identityId"`
	JWT        string `json:"jwt"`
}

type JwtAuthLoginRequest added in v0.5.94

type JwtAuthLoginRequest struct {
	IdentityID string `json:"identityId"`
	JWT        string `json:"jwt"`
}

JWT auth:

type KubernetesAuthLoginRequest

type KubernetesAuthLoginRequest struct {
	IdentityID string `json:"identityId"`
	JWT        string `json:"jwt"`
}

Kubernetes auth:

type LdapAuthLoginRequest added in v0.5.98

type LdapAuthLoginRequest struct {
	IdentityID string `json:"identityId"`
	Username   string `json:"username"`
	Password   string `json:"password"`
}

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 CallJwtAuthLogin added in v0.5.94

func CallJwtAuthLogin(httpClient *resty.Client, request JwtAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)

func CallKubernetesAuthLogin

func CallKubernetesAuthLogin(httpClient *resty.Client, request KubernetesAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)

func CallLdapAuthLogin added in v0.5.98

func CallLdapAuthLogin(httpClient *resty.Client, request LdapAuthLoginRequest) (credential MachineIdentityAuthLoginResponse, e error)

func CallOciAuthLogin added in v0.5.98

func CallOciAuthLogin(httpClient *resty.Client, request OciAuthLoginRequest) (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 OciAuthLoginRequest added in v0.5.98

type OciAuthLoginRequest struct {
	IdentityID string            `json:"identityId"`
	UserOcid   string            `json:"userOcid"`
	Headers    map[string]string `json:"headers"`
}

type OidcAuthLoginRequest added in v0.3.0

type OidcAuthLoginRequest struct {
	IdentityID string `json:"identityId"`
	JWT        string `json:"jwt"`
}

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:

Jump to

Keyboard shortcuts

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