本文整理汇总了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)
}