-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Identity V3: add Trust Delete function (#1644)
* Identity V3: add Trust Create and Extract funcions Implement Create and Extract functions for v3/extenstions/trusts package with unit tests and docs. This commit also adds Role struct to this package. * Identity V3: add Trust Delete function Implement Delete function for the v3/extensions/trusts package with tests and docs.
- Loading branch information
1 parent
17584a2
commit 00c1d0b
Showing
6 changed files
with
268 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package trusts | ||
|
||
import "github.com/gophercloud/gophercloud" | ||
|
||
const resourcePath = "OS-TRUST/trusts" | ||
|
||
func rootURL(c *gophercloud.ServiceClient) string { | ||
return c.ServiceURL(resourcePath) | ||
} | ||
|
||
func resourceURL(c *gophercloud.ServiceClient, id string) string { | ||
return c.ServiceURL(resourcePath, id) | ||
} | ||
|
||
func createURL(c *gophercloud.ServiceClient) string { | ||
return rootURL(c) | ||
} | ||
|
||
func deleteURL(c *gophercloud.ServiceClient, id string) string { | ||
return resourceURL(c, id) | ||
} |