Documentation ¶
Overview ¶
Package openstack contains resources for the individual OpenStack projects supported in Gophercloud. It also includes functions to authenticate to an OpenStack cloud and for provisioning various service-level clients.
Example of Creating a Service Client
ao, err := openstack.AuthOptionsFromEnv() provider, err := openstack.AuthenticatedClient(ao) client, err := openstack.NewNetworkV2(client, golangsdk.EndpointOpts{ Region: os.Getenv("OS_REGION_NAME"), })
Index ¶
- func ApiGateWayV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func AuthOptionsFromEnv() (golangsdk.AuthOptions, error)
- func Authenticate(client *golangsdk.ProviderClient, options golangsdk.AuthOptionsProvider) error
- func AuthenticateV2(client *golangsdk.ProviderClient, options golangsdk.AuthOptions, ...) error
- func AuthenticateV3(client *golangsdk.ProviderClient, options tokens3.AuthOptionsBuilder, ...) error
- func AuthenticatedClient(options golangsdk.AuthOptions) (*golangsdk.ProviderClient, error)
- func CCIV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func InitServiceClientByName(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts, apiVersion string) (*golangsdk.ServiceClient, error)
- func MAASV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func MapReduceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewAntiDDoSV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewAntiDDoSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewAutoScalingService(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewBMSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewBSSV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewBlockStorageV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewBlockStorageV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewBlockStorageV3(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewCCE(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewCCEAddonV3(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewCCEV3(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewCDNV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewCESClient(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewCSBSService(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewCTSService(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewClient(endpoint string) (*golangsdk.ProviderClient, error)
- func NewComputeV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewComputeV11(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewComputeV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewDBV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewDCSServiceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewDDSV3(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewDMSServiceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewDNSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewDRSServiceV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewDWSClient(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewDeHServiceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewELBV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewEcsV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewElasticLoadBalancer(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewElbV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts, otctype string) (*golangsdk.ServiceClient, error)
- func NewFGSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewGeminiDBV3(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewHuaweiLTSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewHwCSBSServiceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewHwSFSTurboV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewHwSFSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewIdentityV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewIdentityV3(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewImageServiceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewImageServiceV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewKMSV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewKmsKeyV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewLTSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewLoadBalancerV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewMAASV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewMLSV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewMapReduceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewNatV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewNetworkV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewNetworkV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewOBSService(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewObjectStorageV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewOrchestrationV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewRDSV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewRDSV3(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewRdsServiceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewRdsTagV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewSDKClient(c *golangsdk.ProviderClient, eo golangsdk.EndpointOpts, serviceType string) (*golangsdk.ServiceClient, error)
- func NewSDRSV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewSMNV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewSharedFileSystemV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewVBSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewVPCV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func NewWAFV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func TMSV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
- func V3EndpointURL(catalog *tokens3.ServiceCatalog, opts golangsdk.EndpointOpts) (string, error)
- type ErrEndpointNotFound
- type ErrInvalidAvailabilityProvided
- type ErrMultipleMatchingEndpointsV2
- type ErrMultipleMatchingEndpointsV3
- type ErrNoAuthURL
- type ErrNoPassword
- type ErrNoUsername
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiGateWayV1 ¶
func ApiGateWayV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
ApiGateWayV1 creates a service client that is used for Huawei cloud for API gateway. TODO: Need to change to apig client type from apig once available
func AuthOptionsFromEnv ¶
func AuthOptionsFromEnv() (golangsdk.AuthOptions, error)
AuthOptionsFromEnv fills out an identity.AuthOptions structure with the settings found on the various OpenStack OS_* environment variables.
The following variables provide sources of truth: OS_AUTH_URL, OS_USERNAME, OS_PASSWORD, OS_TENANT_ID, and OS_TENANT_NAME.
Of these, OS_USERNAME, OS_PASSWORD, and OS_AUTH_URL must have settings, or an error will result. OS_TENANT_ID, OS_TENANT_NAME, OS_PROJECT_ID, and OS_PROJECT_NAME are optional.
OS_TENANT_ID and OS_TENANT_NAME are mutually exclusive to OS_PROJECT_ID and OS_PROJECT_NAME. If OS_PROJECT_ID and OS_PROJECT_NAME are set, they will still be referred as "tenant" in Gophercloud.
To use this function, first set the OS_* environment variables (for example, by sourcing an `openrc` file), then:
opts, err := openstack.AuthOptionsFromEnv() provider, err := openstack.AuthenticatedClient(opts)
func Authenticate ¶
func Authenticate(client *golangsdk.ProviderClient, options golangsdk.AuthOptionsProvider) error
Authenticate or re-authenticate against the most recent identity service supported at the provided endpoint.
func AuthenticateV2 ¶
func AuthenticateV2(client *golangsdk.ProviderClient, options golangsdk.AuthOptions, eo golangsdk.EndpointOpts) error
AuthenticateV2 explicitly authenticates against the identity v2 endpoint.
func AuthenticateV3 ¶
func AuthenticateV3(client *golangsdk.ProviderClient, options tokens3.AuthOptionsBuilder, eo golangsdk.EndpointOpts) error
AuthenticateV3 explicitly authenticates against the identity v3 service.
func AuthenticatedClient ¶
func AuthenticatedClient(options golangsdk.AuthOptions) (*golangsdk.ProviderClient, error)
AuthenticatedClient logs in to an OpenStack cloud found at the identity endpoint specified by the options, acquires a token, and returns a Provider Client instance that's ready to operate.
If the full path to a versioned identity endpoint was specified (example: http://example.com:5000/v3), that path will be used as the endpoint to query.
If a versionless endpoint was specified (example: http://example.com:5000/), the endpoint will be queried to determine which versions of the identity service are available, then chooses the most recent or most supported version.
Example:
ao, err := openstack.AuthOptionsFromEnv() provider, err := openstack.AuthenticatedClient(ao) client, err := openstack.NewNetworkV2(client, golangsdk.EndpointOpts{ Region: os.Getenv("OS_REGION_NAME"), })
func CCIV1 ¶
func CCIV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
CCIV1 creates a ServiceClient that may be used with the v1 CCI service.
func InitServiceClientByName ¶
func InitServiceClientByName(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts, apiVersion string) (*golangsdk.ServiceClient, error)
InitServiceClientByName create a ServiceClient which was assembled by service and region name for huaweicloud. the endpoint likes https://{eo.Name}.{eo.Region}.myhuaweicloud.com/{apiVersion}/{project_id}
func MAASV1 ¶
func MAASV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
MAASV1 creates a ServiceClient that may be used with the v1 MAAS service.
func MapReduceV1 ¶
func MapReduceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
MapReduceV1 creates a ServiceClient that may be used with the v1 MapReduce service.
func NewAntiDDoSV1 ¶
func NewAntiDDoSV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewAntiDDoSV1 creates a ServiceClient that may be used with the v1 Anti DDoS Service package.
func NewAntiDDoSV2 ¶
func NewAntiDDoSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewAntiDDoSV2 creates a ServiceClient that may be used with the v2 Anti DDoS Service package.
func NewAutoScalingService ¶
func NewAutoScalingService(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewAutoScalingService creates a ServiceClient that may be used to access the auto-scaling service of huawei public cloud
func NewBMSV2 ¶
func NewBMSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
func NewBSSV1 ¶
func NewBSSV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewBSSV1 creates a ServiceClient that may be used to access the BSS service.
func NewBlockStorageV1 ¶
func NewBlockStorageV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewBlockStorageV1 creates a ServiceClient that may be used to access the v1 block storage service.
func NewBlockStorageV2 ¶
func NewBlockStorageV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewBlockStorageV2 creates a ServiceClient that may be used to access the v2 block storage service.
func NewBlockStorageV3 ¶
func NewBlockStorageV3(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewBlockStorageV3 creates a ServiceClient that may be used to access the v3 block storage service.
func NewCCE ¶
func NewCCE(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewCCE creates a ServiceClient that may be used to access the CCE service.
func NewCCEAddonV3 ¶
func NewCCEAddonV3(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
func NewCCEV3 ¶
func NewCCEV3(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
func NewCDNV1 ¶
func NewCDNV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewCDNV1 creates a ServiceClient that may be used to access the v1 CDN service.
func NewCESClient ¶
func NewCESClient(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewCESClient creates a ServiceClient that may be used with the v1 CES service.
func NewCSBSService ¶
func NewCSBSService(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewCSBSService creates a ServiceClient that can be used to access the Cloud Server Backup service.
func NewCTSService ¶
func NewCTSService(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewCTSService creates a ServiceClient that can be used to access the Cloud Trace service.
func NewClient ¶
NewClient prepares an unauthenticated ProviderClient instance. Most users will probably prefer using the AuthenticatedClient function instead.
This is useful if you wish to explicitly control the version of the identity service that's used for authentication explicitly, for example.
A basic example of using this would be:
ao, err := openstack.AuthOptionsFromEnv() provider, err := openstack.NewClient(ao.IdentityEndpoint) client, err := openstack.NewIdentityV3(provider, golangsdk.EndpointOpts{})
func NewComputeV1 ¶
func NewComputeV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewComputeV1 creates a ServiceClient that may be used with the ecs v1 package. Deprecated: use NewEcsV1 instead
func NewComputeV11 ¶
func NewComputeV11(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewComputeV11 creates a ServiceClient that may be used with the ecs v1.1 package.
func NewComputeV2 ¶
func NewComputeV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewComputeV2 creates a ServiceClient that may be used with the openstack nova compute v2 package.
func NewDBV1 ¶
func NewDBV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewDBV1 creates a ServiceClient that may be used to access the v1 DB service.
func NewDCSServiceV1 ¶
func NewDCSServiceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewDCSServiceV1 creates a ServiceClient that may be used to access the v1 Distributed Cache Service.
func NewDDSV3 ¶
func NewDDSV3(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewDDSV3 creates a ServiceClient that may be used to access the DDS service.
func NewDMSServiceV1 ¶
func NewDMSServiceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewDMSServiceV1 creates a ServiceClient that may be used to access the v1 Distributed Message Service.
func NewDNSV2 ¶
func NewDNSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewDNSV2 creates a ServiceClient that may be used to access the v2 DNS service.
func NewDRSServiceV2 ¶
func NewDRSServiceV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewDRSServiceV2 creates a ServiceClient that may be used to access the v2 Data Replication Service.
func NewDWSClient ¶
func NewDWSClient(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
func NewDeHServiceV1 ¶
func NewDeHServiceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewDeHServiceV1 creates a ServiceClient that may be used to access the v1 Dedicated Hosts service.
func NewELBV1 ¶
func NewELBV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewELBV1 creates a ServiceClient that may be used to access the ELB service.
func NewEcsV1 ¶
func NewEcsV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewEcsV1 creates a ServiceClient that may be used with the ecs v1 package.
func NewElasticLoadBalancer ¶
func NewElasticLoadBalancer(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
func NewElbV1 ¶
func NewElbV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts, otctype string) (*golangsdk.ServiceClient, error)
NewElbV1 creates a ServiceClient that may be used with the v1 network package.
func NewFGSV2 ¶
func NewFGSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewFGSV2 creates a ServiceClient that may be used with the v2 as package.
func NewGeminiDBV3 ¶
func NewGeminiDBV3(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewGeminiDBV3 creates a ServiceClient that may be used with the GeminiDB service.
func NewHuaweiLTSV2 ¶
func NewHuaweiLTSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewHuaweiLTSV2 creates a ServiceClient that may be used to access the Huawei Cloud LTS service.
func NewHwCSBSServiceV1 ¶
func NewHwCSBSServiceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewHwCSBSServiceV1 creates a ServiceClient that may be used to access the Huawei Cloud Server Backup service.
func NewHwSFSTurboV1 ¶
func NewHwSFSTurboV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewHwSFSTurboV1 creates a service client that is used for Huawei cloud for SFS Turbo.
func NewHwSFSV2 ¶
func NewHwSFSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewHwSFSV2 creates a service client that is used for Huawei cloud for SFS, it replaces the EVS type. TODO: Need to change to sfs client type from evs once available
func NewIdentityV2 ¶
func NewIdentityV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewIdentityV2 creates a ServiceClient that may be used to interact with the v2 identity service.
func NewIdentityV3 ¶
func NewIdentityV3(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewIdentityV3 creates a ServiceClient that may be used to access the v3 identity service.
func NewImageServiceV1 ¶
func NewImageServiceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewImageServiceV1 creates a ServiceClient that may be used to access the v1 image service.
func NewImageServiceV2 ¶
func NewImageServiceV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewImageServiceV2 creates a ServiceClient that may be used to access the v2 image service.
func NewKMSV1 ¶
func NewKMSV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewKMSV1 creates a ServiceClient that may be used to access the KMS service.
func NewKmsKeyV1 ¶
func NewKmsKeyV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewKmsKeyV1 creates a ServiceClient that may be used to access the kms key service. **only used for HCS**
func NewLTSV2 ¶
func NewLTSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewLTSV2 creates a ServiceClient that may be used to access the LTS service.
func NewLoadBalancerV2 ¶
func NewLoadBalancerV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewLoadBalancerV2 creates a ServiceClient that may be used to access the v2 load balancer service.
func NewMAASV1 ¶
func NewMAASV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewMAASV1 creates a ServiceClient that may be used to access the MAAS service.
func NewMLSV1 ¶
func NewMLSV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
func NewMapReduceV1 ¶
func NewMapReduceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewMapReduceV1 creates a ServiceClient that may be used with the v1 MapReduce service.
func NewNatV2 ¶
func NewNatV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewNatV2 creates a ServiceClient that may be used with the v2 nat package.
func NewNetworkV1 ¶
func NewNetworkV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewNetworkV1 creates a ServiceClient that may be used with the vpc v1 package.
func NewNetworkV2 ¶
func NewNetworkV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewNetworkV2 creates a ServiceClient that may be used with the openstack neutron v2.0 package.
func NewOBSService ¶
func NewOBSService(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewOBSService creates a ServiceClient that may be used to access the Object Storage Service.
func NewObjectStorageV1 ¶
func NewObjectStorageV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewObjectStorageV1 creates a ServiceClient that may be used with the v1 object storage package.
func NewOrchestrationV1 ¶
func NewOrchestrationV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewOrchestrationV1 creates a ServiceClient that may be used to access the v1 orchestration service.
func NewRDSV1 ¶
func NewRDSV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewRDSV1 creates a ServiceClient that may be used to access the RDS service.
func NewRDSV3 ¶
func NewRDSV3(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewRDSV3 creates a ServiceClient that may be used to access the RDS service.
func NewRdsServiceV1 ¶
func NewRdsServiceV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewRdsServiceV1 creates the a ServiceClient that may be used to access the v1 rds service which is a service of db instances management.
func NewRdsTagV1 ¶
func NewRdsTagV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
func NewSDKClient ¶
func NewSDRSV1 ¶
func NewSDRSV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewSDRSV1 creates a ServiceClient that may be used to access the SDRS service.
func NewSMNV2 ¶
func NewSMNV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewSMNV2 creates a ServiceClient that may be used to access the SMN service.
func NewSharedFileSystemV2 ¶
func NewSharedFileSystemV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewSharedFileSystemV2 creates a ServiceClient that may be used to access the v2 shared file system service.
func NewVBSV2 ¶
func NewVBSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewVBSV2 creates a ServiceClient that may be used to access the VBS service
func NewVPCV1 ¶
func NewVPCV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewVPCV1 creates a ServiceClient that may be used with the vpc v1 package.
func NewWAFV1 ¶
func NewWAFV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
NewWAFV1 creates a ServiceClient that may be used to access the WAF service.
func TMSV1 ¶
func TMSV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error)
TMSV1 creates a ServiceClient that may be used with the v1 TMS service.
func V3EndpointURL ¶
func V3EndpointURL(catalog *tokens3.ServiceCatalog, opts golangsdk.EndpointOpts) (string, error)
V3EndpointURL discovers the endpoint URL for a specific service from a Catalog acquired during the v3 identity service.
The specified EndpointOpts are used to identify a unique, unambiguous endpoint to return. It's an error both when multiple endpoints match the provided criteria and when none do. The minimum that can be specified is a Type, but you will also often need to specify a Name and/or a Region depending on what's available on your OpenStack deployment.
Types ¶
type ErrEndpointNotFound ¶
type ErrEndpointNotFound struct{ golangsdk.BaseError }
ErrEndpointNotFound is the error when no suitable endpoint can be found in the user's catalog
func (ErrEndpointNotFound) Error ¶
func (e ErrEndpointNotFound) Error() string
type ErrInvalidAvailabilityProvided ¶
type ErrInvalidAvailabilityProvided struct{ golangsdk.ErrInvalidInput }
ErrInvalidAvailabilityProvided is the error when an invalid endpoint availability is provided
func (ErrInvalidAvailabilityProvided) Error ¶
func (e ErrInvalidAvailabilityProvided) Error() string
type ErrMultipleMatchingEndpointsV2 ¶
ErrMultipleMatchingEndpointsV2 is the error when more than one endpoint for the given options is found in the v2 catalog
func (ErrMultipleMatchingEndpointsV2) Error ¶
func (e ErrMultipleMatchingEndpointsV2) Error() string
type ErrMultipleMatchingEndpointsV3 ¶
ErrMultipleMatchingEndpointsV3 is the error when more than one endpoint for the given options is found in the v3 catalog
func (ErrMultipleMatchingEndpointsV3) Error ¶
func (e ErrMultipleMatchingEndpointsV3) Error() string
type ErrNoAuthURL ¶
type ErrNoAuthURL struct{ golangsdk.ErrInvalidInput }
ErrNoAuthURL is the error when the OS_AUTH_URL environment variable is not found
func (ErrNoAuthURL) Error ¶
func (e ErrNoAuthURL) Error() string
type ErrNoPassword ¶
type ErrNoPassword struct{ golangsdk.ErrInvalidInput }
ErrNoPassword is the error when the OS_PASSWORD environment variable is not found
func (ErrNoPassword) Error ¶
func (e ErrNoPassword) Error() string
type ErrNoUsername ¶
type ErrNoUsername struct{ golangsdk.ErrInvalidInput }
ErrNoUsername is the error when the OS_USERNAME environment variable is not found
func (ErrNoUsername) Error ¶
func (e ErrNoUsername) Error() string
Directories ¶
Path | Synopsis |
---|---|
aad
|
|
antiddos
|
|
v1/antiddos
The Anti-DDoS traffic cleaning service (Anti-DDoS for short) defends resources (Elastic Cloud Servers (ECSs), Elastic Load Balance (ELB) instances, and Bare Metal Servers (BMSs)) on HUAWEI CLOUD against network- and application-layer distributed denial of service (DDoS) attacks and sends alarms immediately when detecting an attack.
|
The Anti-DDoS traffic cleaning service (Anti-DDoS for short) defends resources (Elastic Cloud Servers (ECSs), Elastic Load Balance (ELB) instances, and Bare Metal Servers (BMSs)) on HUAWEI CLOUD against network- and application-layer distributed denial of service (DDoS) attacks and sends alarms immediately when detecting an attack. |
aom
|
|
apigw
|
|
autoscaling
|
|
bcs
|
|
blockstorage
|
|
extensions/volumeactions
Package volumeactions provides information and interaction with volumes in the OpenStack Block Storage service.
|
Package volumeactions provides information and interaction with volumes in the OpenStack Block Storage service. |
v2/volumes
Package volumes provides information and interaction with volumes in the OpenStack Block Storage service.
|
Package volumes provides information and interaction with volumes in the OpenStack Block Storage service. |
bms
|
|
bss
|
|
cbr
|
|
cce
|
|
v3/clusters
Package Clusters enables management and retrieval of Clusters CCE service.
|
Package Clusters enables management and retrieval of Clusters CCE service. |
v3/partitions
Package partitions is a new feature introduced by CCE Turbo remote distributed cluster management.
|
Package partitions is a new feature introduced by CCE Turbo remote distributed cluster management. |
cci
|
|
cdm
|
|
cdn
|
|
cloudeyeservice
|
|
cloudtable
|
|
common
|
|
compute
|
|
v2/extensions/attachinterfaces
Package attachinterfaces provides the ability to retrieve and manage network interfaces through Nova.
|
Package attachinterfaces provides the ability to retrieve and manage network interfaces through Nova. |
v2/extensions/availabilityzones
Package availabilityzones provides the ability to get lists and detailed availability zone information and to extend a server result with availability zone information.
|
Package availabilityzones provides the ability to get lists and detailed availability zone information and to extend a server result with availability zone information. |
v2/extensions/floatingips
Package floatingips provides the ability to manage floating ips through the Nova API.
|
Package floatingips provides the ability to manage floating ips through the Nova API. |
v2/extensions/keypairs
Package keypairs provides the ability to manage key pairs as well as create servers with a specified key pair.
|
Package keypairs provides the ability to manage key pairs as well as create servers with a specified key pair. |
v2/extensions/secgroups
Package secgroups provides the ability to manage security groups through the Nova API.
|
Package secgroups provides the ability to manage security groups through the Nova API. |
v2/extensions/volumeattach
Package volumeattach provides the ability to attach and detach volumes from servers.
|
Package volumeattach provides the ability to attach and detach volumes from servers. |
v2/flavors
Package flavors provides information and interaction with the flavor API in the OpenStack Compute service.
|
Package flavors provides information and interaction with the flavor API in the OpenStack Compute service. |
v2/images
Package images provides information and interaction with the images through the OpenStack Compute service.
|
Package images provides information and interaction with the images through the OpenStack Compute service. |
v2/servers
Package servers provides information and interaction with the server API resource in the OpenStack Compute service.
|
Package servers provides information and interaction with the server API resource in the OpenStack Compute service. |
csbs
|
|
v1/backup
Package backup enables management and retrieval of back up resources.
|
Package backup enables management and retrieval of back up resources. |
v1/policies
Package backup policies enables management and retrieval of backup servers periodically.
|
Package backup policies enables management and retrieval of backup servers periodically. |
cse
|
|
csms
|
|
css
|
|
cts
|
|
v1/tracker
Package tracker provides operation records for cloud service resources.
|
Package tracker provides operation records for cloud service resources. |
dayu
|
|
dc
|
|
dcs
|
|
dds
|
|
dis
|
|
dli
|
|
v1/queues
Package keys provides information and interaction with keys in the Queues in DLI are computing resources, which are the basis for using DLI.
|
Package keys provides information and interaction with keys in the Queues in DLI are computing resources, which are the basis for using DLI. |
dms
|
|
dns
|
|
v2/recordsets
Package recordsets provides information and interaction with the zone API resource for the OpenStack DNS service.
|
Package recordsets provides information and interaction with the zone API resource for the OpenStack DNS service. |
v2/zones
Package zones provides information and interaction with the zone API resource for the OpenStack DNS service.
|
Package zones provides information and interaction with the zone API resource for the OpenStack DNS service. |
drs
|
|
dws
|
|
ecs
|
|
v1/servergroups
Package servergroups provides the ability to manage server groups.
|
Package servergroups provides the ability to manage server groups. |
elb
|
|
v2/loadbalancers
Package loadbalancers provides information and interaction with Load Balancers of the ELB v2 extension for the OpenStack Networking service.
|
Package loadbalancers provides information and interaction with Load Balancers of the ELB v2 extension for the OpenStack Networking service. |
eps
|
|
er
|
|
evs
|
|
fgs
|
|
geminidb
|
|
identity
|
|
v3/domains
Package domains manages and retrieves Domains in the OpenStack Identity Service.
|
Package domains manages and retrieves Domains in the OpenStack Identity Service. |
v3/groups
Package groups manages and retrieves Groups in the OpenStack Identity Service.
|
Package groups manages and retrieves Groups in the OpenStack Identity Service. |
v3/projects
Package projects manages and retrieves Projects in the OpenStack Identity Service.
|
Package projects manages and retrieves Projects in the OpenStack Identity Service. |
v3/tokens
Package tokens provides information and interaction with the token API resource for the OpenStack Identity service.
|
Package tokens provides information and interaction with the token API resource for the OpenStack Identity service. |
v3/users
Package users manages and retrieves Users in the OpenStack Identity Service.
|
Package users manages and retrieves Users in the OpenStack Identity Service. |
iec
|
|
imageservice
|
|
v2/imagedata
Package imagedata enables management of image data.
|
Package imagedata enables management of image data. |
v2/images
Package images enables management and retrieval of images from the OpenStack Image Service.
|
Package images enables management and retrieval of images from the OpenStack Image Service. |
ims
|
|
kms
|
|
v1/keys
Package keys provides information and interaction with keys in the Key Management Service service.
|
Package keys provides information and interaction with keys in the Key Management Service service. |
lts
|
|
maas
|
|
meeting
|
|
modelarts
|
|
mrs
|
|
nat
|
|
networking
|
|
v1/subnets
Package Subnets enables management and retrieval of Subnets
|
Package Subnets enables management and retrieval of Subnets |
v1/vpcs
Package vpcs enables management and retrieval of Vpcs VPC service.
|
Package vpcs enables management and retrieval of Vpcs VPC service. |
v2/extensions/extradhcpopts
Package extradhcpopts allow to work with extra DHCP functionality of Neutron ports.
|
Package extradhcpopts allow to work with extra DHCP functionality of Neutron ports. |
v2/extensions/fwaas_v2/routerinsertion
Package routerinsertion implements the fwaasrouterinsertion FWaaS extension.
|
Package routerinsertion implements the fwaasrouterinsertion FWaaS extension. |
v2/extensions/layer3/floatingips
package floatingips enables management and retrieval of Floating IPs from the OpenStack Networking service.
|
package floatingips enables management and retrieval of Floating IPs from the OpenStack Networking service. |
v2/extensions/layer3/routers
Package routers enables management and retrieval of Routers from the OpenStack Networking service.
|
Package routers enables management and retrieval of Routers from the OpenStack Networking service. |
v2/extensions/provider
Package provider gives access to the provider Neutron plugin, allowing network extended attributes.
|
Package provider gives access to the provider Neutron plugin, allowing network extended attributes. |
v2/extensions/security/groups
Package groups provides information and interaction with Security Groups for the OpenStack Networking service.
|
Package groups provides information and interaction with Security Groups for the OpenStack Networking service. |
v2/extensions/security/rules
Package rules provides information and interaction with Security Group Rules for the OpenStack Networking service.
|
Package rules provides information and interaction with Security Group Rules for the OpenStack Networking service. |
v2/extensions/vpnaas/endpointgroups
Package endpointgroups allows management of endpoint groups in the Openstack Network Service
|
Package endpointgroups allows management of endpoint groups in the Openstack Network Service |
v2/extensions/vpnaas/ikepolicies
Package ikepolicies allows management and retrieval of IKE policies in the OpenStack Networking Service.
|
Package ikepolicies allows management and retrieval of IKE policies in the OpenStack Networking Service. |
v2/extensions/vpnaas/ipsecpolicies
Package ipsecpolicies allows management and retrieval of IPSec Policies in the OpenStack Networking Service.
|
Package ipsecpolicies allows management and retrieval of IPSec Policies in the OpenStack Networking Service. |
v2/extensions/vpnaas/services
Package services allows management and retrieval of VPN services in the OpenStack Networking Service.
|
Package services allows management and retrieval of VPN services in the OpenStack Networking Service. |
v2/extensions/vpnaas/siteconnections
Package siteconnections allows management and retrieval of IPSec site connections in the OpenStack Networking Service.
|
Package siteconnections allows management and retrieval of IPSec site connections in the OpenStack Networking Service. |
v2/networks
Package networks contains functionality for working with Neutron network resources.
|
Package networks contains functionality for working with Neutron network resources. |
v2/peerings
Package peerings enables management and retrieval of vpc peering connections
|
Package peerings enables management and retrieval of vpc peering connections |
v2/ports
Package ports contains functionality for working with Neutron port resources.
|
Package ports contains functionality for working with Neutron port resources. |
v2/routes
Package routes enables management and retrieval of Routes Route service.
|
Package routes enables management and retrieval of Routes Route service. |
v2/subnets
Package subnets contains functionality for working with Neutron subnet resources.
|
Package subnets contains functionality for working with Neutron subnet resources. |
opengauss
|
|
rds
|
|
rf
|
|
rms
|
|
scm
|
|
sdrs
|
|
servicestage
|
|
sfs
|
|
v2/shares
Package shares enables management and retrieval of shares Share service.
|
Package shares enables management and retrieval of shares Share service. |
sfs_turbo
|
|
smn
|
|
sms
|
|
swr
|
|
taurusdb
|
|
vbs
|
|
v2/backups
Package backups enables management and retrieval of Backups VBS service.
|
Package backups enables management and retrieval of Backups VBS service. |
vpcep
|
|
waf
|
|
waf_hw
|
|
workspace
|
|