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