1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
package applicationcredentials
import "github.com/gophercloud/gophercloud"
func listURL(client *gophercloud.ServiceClient, userID string) string {
return client.ServiceURL("users", userID, "application_credentials")
}
func getURL(client *gophercloud.ServiceClient, userID string, id string) string {
return client.ServiceURL("users", userID, "application_credentials", id)
}
func createURL(client *gophercloud.ServiceClient, userID string) string {
return client.ServiceURL("users", userID, "application_credentials")
}
func deleteURL(client *gophercloud.ServiceClient, userID string, id string) string {
return client.ServiceURL("users", userID, "application_credentials", id)
}
func listAccessRulesURL(client *gophercloud.ServiceClient, userID string) string {
return client.ServiceURL("users", userID, "access_rules")
}
func getAccessRuleURL(client *gophercloud.ServiceClient, userID string, id string) string {
return client.ServiceURL("users", userID, "access_rules", id)
}
func deleteAccessRuleURL(client *gophercloud.ServiceClient, userID string, id string) string {
return client.ServiceURL("users", userID, "access_rules", id)
}
|