-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vault: user_domain_id/name and project_domain_id/name implementation …
…for dynamic users (#119) Vault: user_domain_id/name and project_domain_id/name implementation for dynamic users Implementation of user_domain_id/name and project_domain_id/name for dynamic users. Changes include: path_roles.go path_roles_test.go api.md path_creds.go path_creds_test.go tests for new parameters Reviewed-by: Aloento Reviewed-by: Anton Sidelnikov Reviewed-by: Polina Gubina Reviewed-by: Artem Lifshits
- Loading branch information
1 parent
c505d76
commit 2f5bfa8
Showing
9 changed files
with
382 additions
and
86 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package common | ||
|
||
import ( | ||
"github.com/gophercloud/gophercloud" | ||
"github.com/gophercloud/gophercloud/openstack/identity/v3/domains" | ||
"github.com/gophercloud/gophercloud/pagination" | ||
) | ||
|
||
func listAvailableURL(client *gophercloud.ServiceClient) string { | ||
return client.ServiceURL("auth", "domains") | ||
} | ||
|
||
func ListAvailable(client *gophercloud.ServiceClient) pagination.Pager { | ||
url := listAvailableURL(client) | ||
return pagination.NewPager(client, url, func(r pagination.PageResult) pagination.Page { | ||
return domains.DomainPage{LinkedPageBase: pagination.LinkedPageBase{PageResult: r}} | ||
}) | ||
} |
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
Oops, something went wrong.