示例#1
0
func userURL(c *gophercloud.ServiceClient, instanceID, userName string) string {
	return c.ServiceURL("instances", instanceID, "users", userName)
}
示例#2
0
文件: urls.go 项目: RaulKite/machine
func metadataURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("servers", id, "metadata")
}
示例#3
0
文件: urls.go 项目: RaulKite/machine
func listAddressesURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("servers", id, "ips")
}
示例#4
0
文件: urls.go 项目: 40a/bootkube
// CreateURL generates the URL used to create new Tokens.
func CreateURL(client *gophercloud.ServiceClient) string {
	return client.ServiceURL("tokens")
}
示例#5
0
文件: urls.go 项目: RaulKite/machine
func deleteURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("servers", id)
}
示例#6
0
func tokenURL(c *gophercloud.ServiceClient, token string) string {
	return c.ServiceURL("tokens", token)
}
示例#7
0
func createURL(c *gophercloud.ServiceClient, groupID string) string {
	return c.ServiceURL("groups", groupID, "policies")
}
示例#8
0
func rootURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL("ports")
}
示例#9
0
func createURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL("images")
}
示例#10
0
func listURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL("services")
}
示例#11
0
func resourceURL(c *gophercloud.ServiceClient, id string) string {
	return c.ServiceURL("ports", id)
}
示例#12
0
func getURL(c *gophercloud.ServiceClient, id string) string {
	return c.ServiceURL("services", id)
}
示例#13
0
func getURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("flavors", id)
}
示例#14
0
func serviceURL(client *gophercloud.ServiceClient, serviceID string) string {
	return client.ServiceURL("services", serviceID)
}
示例#15
0
文件: urls.go 项目: 40a/bootkube
func rootURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL(rootPath, resourcePath)
}
示例#16
0
// `imageURL(c,i)` is the URL for the image identified by ID `i` in
// the service `c`.
func imageURL(c *gophercloud.ServiceClient, imageID string) string {
	return c.ServiceURL("images", imageID)
}
示例#17
0
func listURL(c *gophercloud.ServiceClient, groupID, policyID string) string {
	return c.ServiceURL("groups", groupID, "policies", policyID, "webhooks")
}
示例#18
0
// `imageDataURL(c,i)` is the URL for the binary image data for the
// image identified by ID `i` in the service `c`.
func imageDataURL(c *gophercloud.ServiceClient, imageID string) string {
	return c.ServiceURL("images", imageID, "file")
}
示例#19
0
func executeURL(c *gophercloud.ServiceClient, groupID, policyID string) string {
	return c.ServiceURL("groups", groupID, "policies", policyID, "execute")
}
示例#20
0
func imageTagURL(c *gophercloud.ServiceClient, imageID string, tag string) string {
	return c.ServiceURL("images", imageID, "tags", tag)
}
示例#21
0
文件: urls.go 项目: 40a/bootkube
// GetURL generates the URL used to Validate Tokens.
func GetURL(client *gophercloud.ServiceClient, token string) string {
	return client.ServiceURL("tokens", token)
}
示例#22
0
func imageMembersURL(c *gophercloud.ServiceClient, imageID string) string {
	return c.ServiceURL("images", imageID, "members")
}
示例#23
0
文件: urls.go 项目: RaulKite/machine
func listDetailURL(client *gophercloud.ServiceClient) string {
	return client.ServiceURL("servers", "detail")
}
示例#24
0
func deactivateImageURL(c *gophercloud.ServiceClient, imageID string) string {
	return c.ServiceURL("images", imageID, "actions", "deactivate")
}
示例#25
0
文件: urls.go 项目: RaulKite/machine
func actionURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("servers", id, "action")
}
示例#26
0
func getURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL("build_info")
}
示例#27
0
文件: urls.go 项目: RaulKite/machine
func createURL(client *gophercloud.ServiceClient) string {
	return client.ServiceURL("servers")
}
示例#28
0
文件: urls.go 项目: 40a/bootkube
func resourceURL(c *gophercloud.ServiceClient, id string) string {
	return c.ServiceURL(rootPath, resourcePath, id)
}
示例#29
0
文件: urls.go 项目: RaulKite/machine
func listAddressesByNetworkURL(client *gophercloud.ServiceClient, id, network string) string {
	return client.ServiceURL("servers", id, "ips", network)
}
示例#30
0
func baseURL(c *gophercloud.ServiceClient, instanceID string) string {
	return c.ServiceURL("instances", instanceID, "users")
}