github.com/gophercloud/gophercloud@v1.11.0/openstack/blockstorage/extensions/backups/urls.go (about) 1 package backups 2 3 import "github.com/gophercloud/gophercloud" 4 5 func createURL(c *gophercloud.ServiceClient) string { 6 return c.ServiceURL("backups") 7 } 8 9 func deleteURL(c *gophercloud.ServiceClient, id string) string { 10 return c.ServiceURL("backups", id) 11 } 12 13 func getURL(c *gophercloud.ServiceClient, id string) string { 14 return c.ServiceURL("backups", id) 15 } 16 17 func listURL(c *gophercloud.ServiceClient) string { 18 return c.ServiceURL("backups") 19 } 20 21 func listDetailURL(c *gophercloud.ServiceClient) string { 22 return c.ServiceURL("backups", "detail") 23 } 24 25 func updateURL(c *gophercloud.ServiceClient, id string) string { 26 return c.ServiceURL("backups", id) 27 } 28 29 func restoreURL(c *gophercloud.ServiceClient, id string) string { 30 return c.ServiceURL("backups", id, "restore") 31 } 32 33 func exportURL(c *gophercloud.ServiceClient, id string) string { 34 return c.ServiceURL("backups", id, "export_record") 35 } 36 37 func importURL(c *gophercloud.ServiceClient) string { 38 return c.ServiceURL("backups", "import_record") 39 }