internal

package
v0.0.95 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

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 Domains

type Domains struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

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

type ProjectResult struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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