github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/cce/v1/persistentvolumeclaims/urls.go (about) 1 package persistentvolumeclaims 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 createURL(client *golangsdk.ServiceClient, clusterId, ns string) string { 11 return addons.CCEServiceURL(client, clusterId, rootPath, ns, "persistentvolumeclaims") 12 } 13 14 func listURL(client *golangsdk.ServiceClient, clusterId, ns string) string { 15 return addons.CCEServiceURL(client, clusterId, rootPath, ns, "persistentvolumeclaims") 16 } 17 18 func deleteURL(client *golangsdk.ServiceClient, clusterId, ns, name string) string { 19 return addons.CCEServiceURL(client, clusterId, rootPath, ns, "persistentvolumeclaims", name) 20 }