github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/swr/v2/namespaces/urls.go (about)

     1  package namespaces
     2  
     3  import "github.com/chnsz/golangsdk"
     4  
     5  func rootURL(client *golangsdk.ServiceClient) string {
     6  	return client.ServiceURL("manage", "namespaces")
     7  }
     8  
     9  func resourceURL(client *golangsdk.ServiceClient, name string) string {
    10  	return client.ServiceURL("manage", "namespaces", name)
    11  }
    12  
    13  func accessURL(client *golangsdk.ServiceClient, namespace string) string {
    14  	return client.ServiceURL("manage", "namespaces", namespace, "access")
    15  }