github.com/gophercloud/gophercloud@v1.11.0/openstack/networking/v2/extensions/security/groups/urls.go (about)

     1  package groups
     2  
     3  import "github.com/gophercloud/gophercloud"
     4  
     5  const rootPath = "security-groups"
     6  
     7  func rootURL(c *gophercloud.ServiceClient) string {
     8  	return c.ServiceURL(rootPath)
     9  }
    10  
    11  func resourceURL(c *gophercloud.ServiceClient, id string) string {
    12  	return c.ServiceURL(rootPath, id)
    13  }