github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/swr/v2/repositories/urls.go (about) 1 package repositories 2 3 import ( 4 "github.com/chnsz/golangsdk" 5 ) 6 7 const rootPath = "manage/namespaces" 8 9 func rootURL(client *golangsdk.ServiceClient, namespace string) string { 10 return client.ServiceURL(rootPath, namespace, "repos") 11 } 12 13 func listURL(client *golangsdk.ServiceClient) string { 14 return client.ServiceURL("manage", "repos") 15 } 16 17 func resourceURL(client *golangsdk.ServiceClient, namespace, repository string) string { 18 return client.ServiceURL(rootPath, namespace, "repos", repository) 19 }