openstack

package
v0.0.0-...-f2512de Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(endpoint, user, password, tenant, domain_name, domain_id string) (*gophercloud.ProviderClient, serror.SnapError)

Authenticate is used to authenticate user for given tenant. Request is send to provided endpoint Returns authenticated provider client, which is used as a base for service clients.

func GetAllTenants

func GetAllTenants(client *gophercloud.ServiceClient) ([]types.Tenant, serror.SnapError)

GetAllTenants is used to retrieve list of available tenants

func GetFloatingIPsCountPerTenant

func GetFloatingIPsCountPerTenant(client *gophercloud.ServiceClient, tenantList []types.Tenant) (map[string]int64, serror.SnapError)

GetFloatingIPsCountPerTenant is used to retrieve number of floating IPs per tenant

func GetNetworkCountPerTenant

func GetNetworkCountPerTenant(client *gophercloud.ServiceClient, tenantList []types.Tenant) (map[string]int64, serror.SnapError)

GetNetworkCountPerTenant is used to retrieve number of networks per tenant

func GetPortsCountPerTenant

func GetPortsCountPerTenant(client *gophercloud.ServiceClient, tenantList []types.Tenant) (map[string]int64, serror.SnapError)

GetPortsCountPerTenant is used to retrieve number of ports per tenant

func GetQuotasForTenant

func GetQuotasForTenant(client *gophercloud.ServiceClient, tenantID string) (map[string]int64, serror.SnapError)

GetQuotasForTenant is used to retrieve quotas for specified tenant

func GetQuotasPerTenant

func GetQuotasPerTenant(client *gophercloud.ServiceClient, tenantList []types.Tenant) (map[string]map[string]int64, serror.SnapError)

GetQuotasPerTenant is used to retrieve quotas per tenants

func GetRoutersCountPerTenant

func GetRoutersCountPerTenant(client *gophercloud.ServiceClient, tenantList []types.Tenant) (map[string]int64, serror.SnapError)

GetRoutersCountPerTenant is used to retrieve number of routers per tenant

func GetSubnetsCountPerTenant

func GetSubnetsCountPerTenant(client *gophercloud.ServiceClient, tenantList []types.Tenant) (map[string]int64, serror.SnapError)

GetSubnetsCountPerTenant is used to retrieve number of subnets per tenant

Types

This section is empty.

Directories

Path Synopsis
http://www.apache.org/licenses/LICENSE-2.0.txt
http://www.apache.org/licenses/LICENSE-2.0.txt

Jump to

Keyboard shortcuts

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