Пример #1
0
func resourceURL(c *gophercloud.ServiceClient, id string) string {
	return c.ServiceURL("subnets", id)
}
Пример #2
0
func rootURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL("subnets")
}
Пример #3
0
func listURL(client *gophercloud.ServiceClient) string {
	return client.ServiceURL("flavors", "detail")
}
Пример #4
0
func rootURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL(rootPath)
}
Пример #5
0
func metadataURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("servers", id, "metadata")
}
Пример #6
0
func listAddressesURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("servers", id, "ips")
}
Пример #7
0
func getURL(c *gophercloud.ServiceClient, name string) string {
	return c.ServiceURL(resourcePath, name)
}
Пример #8
0
func deleteURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("servers", id)
}
Пример #9
0
// CreateURL generates the URL used to create new Tokens.
func CreateURL(client *gophercloud.ServiceClient) string {
	return client.ServiceURL("tokens")
}
Пример #10
0
func createURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL("os-volumes_boot")
}
Пример #11
0
func deleteURL(c *gophercloud.ServiceClient, id string) string {
	return c.ServiceURL("volumes", id)
}
Пример #12
0
func resourceURL(c *gophercloud.ServiceClient, serverId string) string {
	return c.ServiceURL("servers", serverId, resourcePath)
}
Пример #13
0
func getURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("flavors", id)
}
Пример #14
0
func listURL(client *gophercloud.ServiceClient) string {
	return client.ServiceURL("tenants")
}
Пример #15
0
func resourceURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL(resourcePath)
}
Пример #16
0
func listDetailURL(client *gophercloud.ServiceClient) string {
	return client.ServiceURL("servers", "detail")
}
Пример #17
0
func copyURL(c *gophercloud.ServiceClient, container, object string) string {
	return c.ServiceURL(container, object)
}
Пример #18
0
func actionURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("servers", id, "action")
}
Пример #19
0
func listURL(c *gophercloud.ServiceClient, container string) string {
	return c.ServiceURL(container)
}
Пример #20
0
func createURL(client *gophercloud.ServiceClient) string {
	return client.ServiceURL("servers")
}
Пример #21
0
func resourceURL(c *gophercloud.ServiceClient, id string) string {
	return c.ServiceURL(rootPath, id)
}
Пример #22
0
func listAddressesByNetworkURL(client *gophercloud.ServiceClient, id, network string) string {
	return client.ServiceURL("servers", id, "ips", network)
}
Пример #23
0
func tokenURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL("auth", "tokens")
}