iam

package
v0.0.0-...-e4898a9 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0, Apache-2.0, BSD-2-Clause, + 1 more Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultIamEndpoint         = "https://iam.myhuaweicloud.com"
	KeystoneListProjectsUri    = "/v3/projects"
	KeystoneListAuthDomainsUri = "/v3/auth/domains"
)

Variables

This section is empty.

Functions

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 Domains

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

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