Documentation ¶
Index ¶
Constants ¶
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "localhost" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/" )
Variables ¶
var Default = NewHTTPClient(nil)
Default power iaas API HTTP client.
var DefaultSchemes = []string{"http"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
This section is empty.
Types ¶
type PowerIaasAPI ¶ added in v1.1.0
type PowerIaasAPI struct { Authentication authentication.ClientService BluemixServiceInstances bluemix_service_instances.ClientService Catalog catalog.ClientService Datacenters datacenters.ClientService HardwarePlatforms hardware_platforms.ClientService HostGroups host_groups.ClientService IaasServiceBroker iaas_service_broker.ClientService InternalPowervsInstances internal_power_v_s_instances.ClientService InternalPowervsLocations internal_power_v_s_locations.ClientService InternalStorageRegions internal_storage_regions.ClientService InternalTransitGateway internal_transit_gateway.ClientService OpenStacks open_stacks.ClientService PCloudCloudConnections p_cloud_cloud_connections.ClientService PCloudDisasterRecovery p_cloud_disaster_recovery.ClientService PCloudEvents p_cloud_events.ClientService PCloudImages p_cloud_images.ClientService PCloudInstances p_cloud_instances.ClientService PCloudJobs p_cloud_jobs.ClientService PCloudNetworks p_cloud_networks.ClientService PCloudpVMInstances p_cloud_p_vm_instances.ClientService PCloudPlacementGroups p_cloud_placement_groups.ClientService PCloudPodCapacity p_cloud_pod_capacity.ClientService PCloudsap p_cloud_s_a_p.ClientService PCloudsppPlacementGroups p_cloud_s_p_p_placement_groups.ClientService PCloudServicedhcp p_cloud_service_d_h_c_p.ClientService PCloudSnapshots p_cloud_snapshots.ClientService PCloudStorageCapacity p_cloud_storage_capacity.ClientService PCloudStorageTiers p_cloud_storage_tiers.ClientService PCloudSystemPools p_cloud_system_pools.ClientService PCloudTasks p_cloud_tasks.ClientService PCloudTenants p_cloud_tenants.ClientService PCloudTenantsSSHKeys p_cloud_tenants_ssh_keys.ClientService PCloudvpnConnections p_cloud_v_p_n_connections.ClientService PCloudvpnPolicies p_cloud_v_p_n_policies.ClientService PCloudVolumeGroups p_cloud_volume_groups.ClientService PCloudVolumeOnboarding p_cloud_volume_onboarding.ClientService PCloudVolumes p_cloud_volumes.ClientService PowerEdgeRouter power_edge_router.ClientService ServiceBindings service_bindings.ClientService ServiceInstances service_instances.ClientService StorageTypes storage_types.ClientService SwaggerSpec swagger_spec.ClientService Workspaces workspaces.ClientService Transport runtime.ClientTransport }
PowerIaasAPI is a client for power iaas API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *PowerIaasAPI
New creates a new power iaas API client
func NewHTTPClient ¶
func NewHTTPClient(formats strfmt.Registry) *PowerIaasAPI
NewHTTPClient creates a new power iaas API HTTP client.
func NewHTTPClientWithConfig ¶
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *PowerIaasAPI
NewHTTPClientWithConfig creates a new power iaas API HTTP client, using a customizable transport config.
func (*PowerIaasAPI) SetTransport ¶ added in v1.1.0
func (c *PowerIaasAPI) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client and all its subresources
type TransportConfig ¶
TransportConfig contains the transport related info, found in the meta section of the spec file.
func DefaultTransportConfig ¶
func DefaultTransportConfig() *TransportConfig
DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.
func (*TransportConfig) WithBasePath ¶
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig
WithBasePath overrides the default basePath, provided by the meta section of the spec file.
func (*TransportConfig) WithHost ¶
func (cfg *TransportConfig) WithHost(host string) *TransportConfig
WithHost overrides the default host, provided by the meta section of the spec file.
func (*TransportConfig) WithSchemes ¶
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig
WithSchemes overrides the default schemes, provided by the meta section of the spec file.