github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/cce/v3/partitions/urls.go (about) 1 package partitions 2 3 import "github.com/chnsz/golangsdk" 4 5 const ( 6 rootPath = "clusters" 7 resourcePath = "partitions" 8 ) 9 10 func rootURL(c *golangsdk.ServiceClient, clusterid string) string { 11 return c.ServiceURL(rootPath, clusterid, resourcePath) 12 } 13 14 func resourceURL(c *golangsdk.ServiceClient, clusterid, partitionName string) string { 15 return c.ServiceURL(rootPath, clusterid, resourcePath, partitionName) 16 }