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