github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/cce/v3/clusters/urls.go (about) 1 package clusters 2 3 import "github.com/opentelekomcloud/gophertelekomcloud" 4 5 const ( 6 rootPath = "clusters" 7 certPath = "clustercert" 8 masterIpPath = "mastereip" 9 ) 10 11 func rootURL(client *golangsdk.ServiceClient) string { 12 return client.ServiceURL(rootPath) 13 } 14 15 func resourceURL(c *golangsdk.ServiceClient, id string) string { 16 return c.ServiceURL(rootPath, id) 17 } 18 19 func certificateURL(c *golangsdk.ServiceClient, id string) string { 20 return c.ServiceURL(rootPath, id, certPath) 21 } 22 23 func masterIpURL(c *golangsdk.ServiceClient, id string) string { 24 return c.ServiceURL(rootPath, id, masterIpPath) 25 }