Documentation ¶
Index ¶
- Constants
- func GetIamEndpoint() string
- func GetKeystoneListAuthDomainsRequest(iamEndpoint string) *request.DefaultHttpRequest
- func GetKeystoneListProjectsRequest(iamEndpoint string, regionId string) *request.DefaultHttpRequest
- func GetResponseBody(resp *response.DefaultHttpResponse) ([]byte, error)
- func KeystoneListAuthDomains(client *impl.DefaultHttpClient, req *request.DefaultHttpRequest) (string, error)
- func KeystoneListProjects(client *impl.DefaultHttpClient, req *request.DefaultHttpRequest) (string, error)
- type Credential
- type Domains
- type GetTemporaryCredentialFromMetadataResponse
- type KeystoneListAuthDomainsResponse
- type KeystoneListProjectsResponse
- type ProjectResult
Constants ¶
View Source
const ( DefaultIamEndpoint = "https://iam.myhuaweicloud.com" KeystoneListProjectsUri = "/v3/projects" KeystoneListAuthDomainsUri = "/v3/auth/domains" IamEndpointEnv = "HUAWEICLOUD_SDK_IAM_ENDPOINT" )
Variables ¶
This section is empty.
Functions ¶
func GetIamEndpoint ¶ added in v0.0.92
func GetIamEndpoint() string
func GetKeystoneListAuthDomainsRequest ¶
func GetKeystoneListAuthDomainsRequest(iamEndpoint string) *request.DefaultHttpRequest
func GetKeystoneListProjectsRequest ¶
func GetKeystoneListProjectsRequest(iamEndpoint string, regionId string) *request.DefaultHttpRequest
func GetResponseBody ¶
func GetResponseBody(resp *response.DefaultHttpResponse) ([]byte, error)
func KeystoneListAuthDomains ¶
func KeystoneListAuthDomains(client *impl.DefaultHttpClient, req *request.DefaultHttpRequest) (string, error)
func KeystoneListProjects ¶
func KeystoneListProjects(client *impl.DefaultHttpClient, req *request.DefaultHttpRequest) (string, error)
Types ¶
type Credential ¶
type Credential struct { ExpiresAt string `json:"expires_at"` Access string `json:"access"` Secret string `json:"secret"` Securitytoken string `json:"securitytoken"` }
func GetTemporaryCredential ¶
func GetTemporaryCredential(client *impl.DefaultHttpClient) (*Credential, error)
type GetTemporaryCredentialFromMetadataResponse ¶
type GetTemporaryCredentialFromMetadataResponse struct {
Credential *Credential `json:"credential,omitempty"`
}
type KeystoneListAuthDomainsResponse ¶
type KeystoneListAuthDomainsResponse struct {
Domains *[]Domains `json:"domains,omitempty"`
}
type KeystoneListProjectsResponse ¶
type KeystoneListProjectsResponse struct {
Projects *[]ProjectResult `json:"projects,omitempty"`
}
type ProjectResult ¶
Click to show internal directories.
Click to hide internal directories.