Documentation ¶
Overview ¶
Package clients contains functions for creating OpenStack service clients for use in acceptance tests. It also manages the required environment variables to run the tests.
Index ¶
- Variables
- func CloudAndClient() (*cc, error)
- func NewAPIGWClient() (client *golangsdk.ServiceClient, err error)
- func NewAutoscalingV1Client() (*golangsdk.ServiceClient, error)
- func NewAutoscalingV2Client() (*golangsdk.ServiceClient, error)
- func NewBlockStorageV1Client() (*golangsdk.ServiceClient, error)
- func NewBlockStorageV2Client() (*golangsdk.ServiceClient, error)
- func NewBlockStorageV3Client() (*golangsdk.ServiceClient, error)
- func NewCTSV1Client() (*golangsdk.ServiceClient, error)
- func NewCTSV2Client() (*golangsdk.ServiceClient, error)
- func NewCTSV3Client() (*golangsdk.ServiceClient, error)
- func NewCbrV3Client() (*golangsdk.ServiceClient, error)
- func NewCceV1Client() (*golangsdk.ServiceClient, error)
- func NewCceV3AddonClient() (*golangsdk.ServiceClient, error)
- func NewCceV3Client() (*golangsdk.ServiceClient, error)
- func NewCesV1Client() (client *golangsdk.ServiceClient, err error)
- func NewComputeV1Client() (*golangsdk.ServiceClient, error)
- func NewComputeV2Client() (*golangsdk.ServiceClient, error)
- func NewCsbsV1Client() (*golangsdk.ServiceClient, error)
- func NewCssV1Client() (*golangsdk.ServiceClient, error)
- func NewDCaaSV2Client() (*golangsdk.ServiceClient, error)
- func NewDNSV2Client() (*golangsdk.ServiceClient, error)
- func NewDWSV1Client() (*golangsdk.ServiceClient, error)
- func NewDataArtsV11Client() (*golangsdk.ServiceClient, error)
- func NewDcsV1Client() (*golangsdk.ServiceClient, error)
- func NewDdsV3Client() (*golangsdk.ServiceClient, error)
- func NewDisV2Client() (*golangsdk.ServiceClient, error)
- func NewDmsV11Client() (*golangsdk.ServiceClient, error)
- func NewDmsV1Client() (*golangsdk.ServiceClient, error)
- func NewDmsV2Client() (*golangsdk.ServiceClient, error)
- func NewDrsV3Client() (*golangsdk.ServiceClient, error)
- func NewElbV2Client() (*golangsdk.ServiceClient, error)
- func NewElbV3Client() (*golangsdk.ServiceClient, error)
- func NewGaussDBClient() (client *golangsdk.ServiceClient, err error)
- func NewIMSV1Client() (*golangsdk.ServiceClient, error)
- func NewIMSV2Client() (*golangsdk.ServiceClient, error)
- func NewIdentityV30AdminClient() (*golangsdk.ServiceClient, error)
- func NewIdentityV3AdminClient() (*golangsdk.ServiceClient, error)
- func NewIdentityV3Client() (*golangsdk.ServiceClient, error)
- func NewIdentityV3UnauthenticatedClient() (*golangsdk.ServiceClient, error)
- func NewKMSV1Client() (*golangsdk.ServiceClient, error)
- func NewLtsV2Client() (client *golangsdk.ServiceClient, err error)
- func NewMrsV1() (*golangsdk.ServiceClient, error)
- func NewNatV2Client() (*golangsdk.ServiceClient, error)
- func NewNetworkV1Client() (*golangsdk.ServiceClient, error)
- func NewNetworkV2Client() (*golangsdk.ServiceClient, error)
- func NewOBSClient() (*obs.ObsClient, error)
- func NewOBSClientWithoutHeader() (*obs.ObsClient, error)
- func NewPeerNetworkV1Client() (*golangsdk.ServiceClient, error)
- func NewPeerNetworkV2Client() (*golangsdk.ServiceClient, error)
- func NewRdsV3() (*golangsdk.ServiceClient, error)
- func NewSDRSV1() (*golangsdk.ServiceClient, error)
- func NewSharedFileSystemTurboV1Client() (*golangsdk.ServiceClient, error)
- func NewSharedFileSystemV2Client() (*golangsdk.ServiceClient, error)
- func NewSmnV2Client() (client *golangsdk.ServiceClient, err error)
- func NewSmnV2TagsClient() (client *golangsdk.ServiceClient, err error)
- func NewSwrV2Client() (client *golangsdk.ServiceClient, err error)
- func NewTmsV1Client() (client *golangsdk.ServiceClient, err error)
- func NewVPCEndpointV1Client() (*golangsdk.ServiceClient, error)
- func NewVPCV3Client() (*golangsdk.ServiceClient, error)
- func NewVbsV2Client() (*golangsdk.ServiceClient, error)
- func NewWafV1Client() (*golangsdk.ServiceClient, error)
- func NewWafdV1Client() (*golangsdk.ServiceClient, error)
- func UpdatePeerTenantDetails(cloud *openstack.Cloud) error
Constants ¶
This section is empty.
Variables ¶
var EnvOS = openstack.NewEnv(envPrefix)
Functions ¶
func CloudAndClient ¶ added in v0.2.1
func CloudAndClient() (*cc, error)
CloudAndClient returns copy of cloud configuration and authenticated client for OS_ environment
func NewAPIGWClient ¶ added in v0.9.0
func NewAPIGWClient() (client *golangsdk.ServiceClient, err error)
NewAPIGWClient returns authenticated LTS v2 client
func NewAutoscalingV1Client ¶ added in v0.2.7
func NewAutoscalingV1Client() (*golangsdk.ServiceClient, error)
NewAutoscalingV1Client returns authenticated AutoScaling v1 client
func NewAutoscalingV2Client ¶ added in v0.5.0
func NewAutoscalingV2Client() (*golangsdk.ServiceClient, error)
NewAutoscalingV2Client returns authenticated AutoScaling v2 client
func NewBlockStorageV1Client ¶
func NewBlockStorageV1Client() (*golangsdk.ServiceClient, error)
NewBlockStorageV1Client returns a *ServiceClient for making calls to the OpenStack Block Storage v1 API. An error will be returned if authentication or client creation was not possible.
func NewBlockStorageV2Client ¶
func NewBlockStorageV2Client() (*golangsdk.ServiceClient, error)
NewBlockStorageV2Client returns a *ServiceClient for making calls to the OpenStack Block Storage v2 API. An error will be returned if authentication or client creation was not possible.
func NewBlockStorageV3Client ¶
func NewBlockStorageV3Client() (*golangsdk.ServiceClient, error)
NewBlockStorageV3Client returns a *ServiceClient for making calls to the OpenStack Block Storage v3 API. An error will be returned if authentication or client creation was not possible.
func NewCTSV1Client ¶ added in v0.5.0
func NewCTSV1Client() (*golangsdk.ServiceClient, error)
func NewCTSV2Client ¶ added in v0.5.25
func NewCTSV2Client() (*golangsdk.ServiceClient, error)
func NewCTSV3Client ¶ added in v0.5.25
func NewCTSV3Client() (*golangsdk.ServiceClient, error)
func NewCbrV3Client ¶ added in v0.2.1
func NewCbrV3Client() (*golangsdk.ServiceClient, error)
func NewCceV1Client ¶ added in v0.5.0
func NewCceV1Client() (*golangsdk.ServiceClient, error)
func NewCceV3AddonClient ¶ added in v0.2.1
func NewCceV3AddonClient() (*golangsdk.ServiceClient, error)
func NewCceV3Client ¶ added in v0.2.1
func NewCceV3Client() (*golangsdk.ServiceClient, error)
func NewCesV1Client ¶ added in v0.5.21
func NewCesV1Client() (client *golangsdk.ServiceClient, err error)
NewCesV1Client returns authenticated CES v1 client
func NewComputeV1Client ¶ added in v0.2.7
func NewComputeV1Client() (*golangsdk.ServiceClient, error)
NewComputeV1Client returns a *ServiceClient for making calls to the OpenStack Compute v1 API. An error will be returned if authentication or client creation was not possible.
func NewComputeV2Client ¶
func NewComputeV2Client() (*golangsdk.ServiceClient, error)
NewComputeV2Client returns a *ServiceClient for making calls to the OpenStack Compute v2 API. An error will be returned if authentication or client creation was not possible.
func NewCsbsV1Client ¶ added in v0.2.0
func NewCsbsV1Client() (*golangsdk.ServiceClient, error)
NewCsbsV1Client returns authenticated CSBS v1 client
func NewCssV1Client ¶ added in v0.2.7
func NewCssV1Client() (*golangsdk.ServiceClient, error)
NewCssV1Client returns authenticated CSS v1 client
func NewDCaaSV2Client ¶ added in v0.8.0
func NewDCaaSV2Client() (*golangsdk.ServiceClient, error)
NewDCaaSV2Client returns a *ServiceClient for making calls to the OpenStack v2 API. An error will be returned if authentication or client creation was not possible.
func NewDNSV2Client ¶
func NewDNSV2Client() (*golangsdk.ServiceClient, error)
NewDNSV2Client returns a *ServiceClient for making calls to the OpenStack Compute v2 API. An error will be returned if authentication or client creation was not possible.
func NewDWSV1Client ¶ added in v0.5.28
func NewDWSV1Client() (*golangsdk.ServiceClient, error)
func NewDataArtsV11Client ¶ added in v0.9.0
func NewDataArtsV11Client() (*golangsdk.ServiceClient, error)
NewDataArtsV11Client returns authenticated DataArts v1.1 client
func NewDcsV1Client ¶ added in v0.5.1
func NewDcsV1Client() (*golangsdk.ServiceClient, error)
NewDcsV1Client returns authenticated DCS v1 client
func NewDdsV3Client ¶ added in v0.2.0
func NewDdsV3Client() (*golangsdk.ServiceClient, error)
NewDdsV3Client returns authenticated DDS v3 client
func NewDisV2Client ¶ added in v0.7.0
func NewDisV2Client() (*golangsdk.ServiceClient, error)
func NewDmsV11Client ¶ added in v0.6.2
func NewDmsV11Client() (*golangsdk.ServiceClient, error)
func NewDmsV1Client ¶ added in v0.5.1
func NewDmsV1Client() (*golangsdk.ServiceClient, error)
NewDmsV1Client returns authenticated DMS v1 client
func NewDmsV2Client ¶ added in v0.6.0
func NewDmsV2Client() (*golangsdk.ServiceClient, error)
NewDmsV2Client returns authenticated DMS v2 client
func NewDrsV3Client ¶ added in v0.8.0
func NewDrsV3Client() (*golangsdk.ServiceClient, error)
NewDrsV3Client returns authenticated DDS v3 client
func NewElbV2Client ¶ added in v0.5.2
func NewElbV2Client() (*golangsdk.ServiceClient, error)
NewElbV2Client returns authenticated ELB v2 client
func NewElbV3Client ¶ added in v0.5.2
func NewElbV3Client() (*golangsdk.ServiceClient, error)
NewElbV3Client returns authenticated ELB v3 client
func NewGaussDBClient ¶ added in v0.9.0
func NewGaussDBClient() (client *golangsdk.ServiceClient, err error)
func NewIMSV1Client ¶ added in v0.8.0
func NewIMSV1Client() (*golangsdk.ServiceClient, error)
func NewIMSV2Client ¶ added in v0.8.0
func NewIMSV2Client() (*golangsdk.ServiceClient, error)
func NewIdentityV30AdminClient ¶ added in v0.5.18
func NewIdentityV30AdminClient() (*golangsdk.ServiceClient, error)
NewIdentityV30AdminClient returns a *ServiceClient for making calls to the OpenStack Identity v3 API on a `domain` level with v3.0 IAM endpoint. An error will be returned if authentication or client creation was not possible.
func NewIdentityV3AdminClient ¶ added in v0.5.17
func NewIdentityV3AdminClient() (*golangsdk.ServiceClient, error)
NewIdentityV3AdminClient returns a *ServiceClient for making calls to the OpenStack Identity v3 API on a `domain` level with v3 IAM endpoint. An error will be returned if authentication or client creation was not possible.
func NewIdentityV3Client ¶
func NewIdentityV3Client() (*golangsdk.ServiceClient, error)
NewIdentityV3Client returns a *ServiceClient for making calls to the OpenStack Identity v3 API on a `project` level. An error will be returned if authentication or client creation was not possible.
func NewIdentityV3UnauthenticatedClient ¶
func NewIdentityV3UnauthenticatedClient() (*golangsdk.ServiceClient, error)
NewIdentityV3UnauthenticatedClient returns an unauthenticated *ServiceClient for the OpenStack Identity v3 API. An error will be returned if authentication or client creation was not possible.
func NewKMSV1Client ¶ added in v0.5.0
func NewKMSV1Client() (*golangsdk.ServiceClient, error)
func NewLtsV2Client ¶ added in v0.5.22
func NewLtsV2Client() (client *golangsdk.ServiceClient, err error)
NewLtsV2Client returns authenticated LTS v2 client
func NewMrsV1 ¶ added in v0.5.7
func NewMrsV1() (*golangsdk.ServiceClient, error)
NewMrsV1 returns authenticated MRS v1 client
func NewNatV2Client ¶ added in v0.2.1
func NewNatV2Client() (*golangsdk.ServiceClient, error)
NewNatV2Client returns authenticated NAT v2 client
func NewNetworkV1Client ¶
func NewNetworkV1Client() (*golangsdk.ServiceClient, error)
NewNetworkV1Client returns a *ServiceClient for making calls to the OpenStack Networking v1 API. An error will be returned if authentication or client creation was not possible.
func NewNetworkV2Client ¶
func NewNetworkV2Client() (*golangsdk.ServiceClient, error)
NewNetworkV2Client returns a *ServiceClient for making calls to the OpenStack Networking v2 API. An error will be returned if authentication or client creation was not possible.
func NewOBSClient ¶ added in v0.2.3
func NewOBSClientWithoutHeader ¶ added in v0.5.0
func NewPeerNetworkV1Client ¶
func NewPeerNetworkV1Client() (*golangsdk.ServiceClient, error)
NewPeerNetworkV1Client returns a *ServiceClient for making calls to the OpenStack Networking v1 API for VPC peer. An error will be returned if authentication or client creation was not possible.
func NewPeerNetworkV2Client ¶
func NewPeerNetworkV2Client() (*golangsdk.ServiceClient, error)
NewPeerNetworkV2Client returns a *ServiceClient for making calls to the OpenStack Networking v2 API for Peer. An error will be returned if authentication or client creation was not possible.
func NewRdsV3 ¶ added in v0.1.0
func NewRdsV3() (*golangsdk.ServiceClient, error)
NewRdsV3 returns authenticated RDS v3 client
func NewSDRSV1 ¶ added in v0.3.1
func NewSDRSV1() (*golangsdk.ServiceClient, error)
NewSDRSV1 returns authenticated SDRS v3 client
func NewSharedFileSystemTurboV1Client ¶ added in v0.2.7
func NewSharedFileSystemTurboV1Client() (*golangsdk.ServiceClient, error)
NewSharedFileSystemTurboV1Client returns a *ServiceClient for making calls to the OpenStack Shared File System Turbo v1 API. An error will be returned if authentication or client creation was not possible.
func NewSharedFileSystemV2Client ¶
func NewSharedFileSystemV2Client() (*golangsdk.ServiceClient, error)
NewSharedFileSystemV2Client returns a *ServiceClient for making calls to the OpenStack Shared File System v2 API. An error will be returned if authentication or client creation was not possible.
func NewSmnV2Client ¶ added in v0.5.0
func NewSmnV2Client() (client *golangsdk.ServiceClient, err error)
NewSmnV2Client returns authenticated SMN v2 client
func NewSmnV2TagsClient ¶ added in v0.9.0
func NewSmnV2TagsClient() (client *golangsdk.ServiceClient, err error)
NewSmnV2TagsClient returns authenticated SMN v2 tags client
func NewSwrV2Client ¶ added in v0.5.0
func NewSwrV2Client() (client *golangsdk.ServiceClient, err error)
NewSwrV2Client returns authenticated SWR v2 client
func NewTmsV1Client ¶ added in v0.8.0
func NewTmsV1Client() (client *golangsdk.ServiceClient, err error)
NewTmsV1Client returns authenticated TMS v1.0 client
func NewVPCEndpointV1Client ¶ added in v0.5.2
func NewVPCEndpointV1Client() (*golangsdk.ServiceClient, error)
func NewVPCV3Client ¶ added in v0.9.0
func NewVPCV3Client() (*golangsdk.ServiceClient, error)
func NewVbsV2Client ¶ added in v0.2.7
func NewVbsV2Client() (*golangsdk.ServiceClient, error)
func NewWafV1Client ¶ added in v0.2.0
func NewWafV1Client() (*golangsdk.ServiceClient, error)
NewWafV1Client returns authenticated WAF v1 client
func NewWafdV1Client ¶ added in v0.8.0
func NewWafdV1Client() (*golangsdk.ServiceClient, error)
NewWafdV1Client returns authenticated WAF premium v1 client
func UpdatePeerTenantDetails ¶
Types ¶
This section is empty.