本文整理匯總了Golang中github.com/rackspace/gophercloud.ServiceClient.ServiceURL方法的典型用法代碼示例。如果您正苦於以下問題:Golang ServiceClient.ServiceURL方法的具體用法?Golang ServiceClient.ServiceURL怎麽用?Golang ServiceClient.ServiceURL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類github.com/rackspace/gophercloud.ServiceClient
的用法示例。
在下文中一共展示了ServiceClient.ServiceURL方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: userURL
func userURL(c *gophercloud.ServiceClient, instanceID, userName string) string {
return c.ServiceURL("instances", instanceID, "users", userName)
}
示例2: metadataURL
func metadataURL(client *gophercloud.ServiceClient, id string) string {
return client.ServiceURL("servers", id, "metadata")
}
示例3: listAddressesURL
func listAddressesURL(client *gophercloud.ServiceClient, id string) string {
return client.ServiceURL("servers", id, "ips")
}
示例4: CreateURL
// CreateURL generates the URL used to create new Tokens.
func CreateURL(client *gophercloud.ServiceClient) string {
return client.ServiceURL("tokens")
}
示例5: deleteURL
func deleteURL(client *gophercloud.ServiceClient, id string) string {
return client.ServiceURL("servers", id)
}
示例6: tokenURL
func tokenURL(c *gophercloud.ServiceClient, token string) string {
return c.ServiceURL("tokens", token)
}
示例7: createURL
func createURL(c *gophercloud.ServiceClient, groupID string) string {
return c.ServiceURL("groups", groupID, "policies")
}
示例8: rootURL
func rootURL(c *gophercloud.ServiceClient) string {
return c.ServiceURL("ports")
}
示例9: createURL
func createURL(c *gophercloud.ServiceClient) string {
return c.ServiceURL("images")
}
示例10: listURL
func listURL(c *gophercloud.ServiceClient) string {
return c.ServiceURL("services")
}
示例11: resourceURL
func resourceURL(c *gophercloud.ServiceClient, id string) string {
return c.ServiceURL("ports", id)
}
示例12: getURL
func getURL(c *gophercloud.ServiceClient, id string) string {
return c.ServiceURL("services", id)
}
示例13: getURL
func getURL(client *gophercloud.ServiceClient, id string) string {
return client.ServiceURL("flavors", id)
}
示例14: serviceURL
func serviceURL(client *gophercloud.ServiceClient, serviceID string) string {
return client.ServiceURL("services", serviceID)
}
示例15: rootURL
func rootURL(c *gophercloud.ServiceClient) string {
return c.ServiceURL(rootPath, resourcePath)
}