github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/cce/v1/namespaces/urls.go (about) 1 package namespaces 2 3 import ( 4 "github.com/chnsz/golangsdk" 5 "github.com/chnsz/golangsdk/openstack/cce/v3/addons" 6 ) 7 8 const rootPath = "namespaces" 9 10 func rootURL(client *golangsdk.ServiceClient, clusterID string) string { 11 return addons.CCEServiceURL(client, clusterID, rootPath) 12 } 13 14 func resourceURL(client *golangsdk.ServiceClient, clusterID, name string) string { 15 return addons.CCEServiceURL(client, clusterID, rootPath, name) 16 }