github.com/vnpaycloud-console/gophercloud/v2@v2.0.5/openstack/identity/v2/roles/urls.go (about)

     1  package roles
     2  
     3  import "github.com/vnpaycloud-console/gophercloud/v2"
     4  
     5  const (
     6  	ExtPath  = "OS-KSADM"
     7  	RolePath = "roles"
     8  	UserPath = "users"
     9  )
    10  
    11  func rootURL(c *gophercloud.ServiceClient) string {
    12  	return c.ServiceURL(ExtPath, RolePath)
    13  }
    14  
    15  func userTenantRoleURL(c *gophercloud.ServiceClient, tenantID, userID, roleID string) string {
    16  	return c.ServiceURL("tenants", tenantID, UserPath, userID, RolePath, ExtPath, roleID)
    17  }