Esempio n. 1
0
func userURL(c *gophercloud.ServiceClient, instanceID, userName string) string {
	return c.ServiceURL("instances", instanceID, "users", userName)
}
Esempio n. 2
0
func metadataURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("servers", id, "metadata")
}
Esempio n. 3
0
func listAddressesURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("servers", id, "ips")
}
Esempio n. 4
0
File: urls.go Progetto: 40a/bootkube
// CreateURL generates the URL used to create new Tokens.
func CreateURL(client *gophercloud.ServiceClient) string {
	return client.ServiceURL("tokens")
}
Esempio n. 5
0
func deleteURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("servers", id)
}
Esempio n. 6
0
func tokenURL(c *gophercloud.ServiceClient, token string) string {
	return c.ServiceURL("tokens", token)
}
Esempio n. 7
0
func createURL(c *gophercloud.ServiceClient, groupID string) string {
	return c.ServiceURL("groups", groupID, "policies")
}
Esempio n. 8
0
func rootURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL("ports")
}
Esempio n. 9
0
func createURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL("images")
}
Esempio n. 10
0
func listURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL("services")
}
Esempio n. 11
0
func resourceURL(c *gophercloud.ServiceClient, id string) string {
	return c.ServiceURL("ports", id)
}
Esempio n. 12
0
func getURL(c *gophercloud.ServiceClient, id string) string {
	return c.ServiceURL("services", id)
}
Esempio n. 13
0
func getURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("flavors", id)
}
Esempio n. 14
0
func serviceURL(client *gophercloud.ServiceClient, serviceID string) string {
	return client.ServiceURL("services", serviceID)
}
Esempio n. 15
0
File: urls.go Progetto: 40a/bootkube
func rootURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL(rootPath, resourcePath)
}
Esempio n. 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)
}
Esempio n. 17
0
func listURL(c *gophercloud.ServiceClient, groupID, policyID string) string {
	return c.ServiceURL("groups", groupID, "policies", policyID, "webhooks")
}
Esempio n. 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")
}
Esempio n. 19
0
func executeURL(c *gophercloud.ServiceClient, groupID, policyID string) string {
	return c.ServiceURL("groups", groupID, "policies", policyID, "execute")
}
Esempio n. 20
0
func imageTagURL(c *gophercloud.ServiceClient, imageID string, tag string) string {
	return c.ServiceURL("images", imageID, "tags", tag)
}
Esempio n. 21
0
File: urls.go Progetto: 40a/bootkube
// GetURL generates the URL used to Validate Tokens.
func GetURL(client *gophercloud.ServiceClient, token string) string {
	return client.ServiceURL("tokens", token)
}
Esempio n. 22
0
func imageMembersURL(c *gophercloud.ServiceClient, imageID string) string {
	return c.ServiceURL("images", imageID, "members")
}
Esempio n. 23
0
func listDetailURL(client *gophercloud.ServiceClient) string {
	return client.ServiceURL("servers", "detail")
}
Esempio n. 24
0
func deactivateImageURL(c *gophercloud.ServiceClient, imageID string) string {
	return c.ServiceURL("images", imageID, "actions", "deactivate")
}
Esempio n. 25
0
func actionURL(client *gophercloud.ServiceClient, id string) string {
	return client.ServiceURL("servers", id, "action")
}
Esempio n. 26
0
func getURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL("build_info")
}
Esempio n. 27
0
func createURL(client *gophercloud.ServiceClient) string {
	return client.ServiceURL("servers")
}
Esempio n. 28
0
File: urls.go Progetto: 40a/bootkube
func resourceURL(c *gophercloud.ServiceClient, id string) string {
	return c.ServiceURL(rootPath, resourcePath, id)
}
Esempio n. 29
0
func listAddressesByNetworkURL(client *gophercloud.ServiceClient, id, network string) string {
	return client.ServiceURL("servers", id, "ips", network)
}
Esempio n. 30
0
func baseURL(c *gophercloud.ServiceClient, instanceID string) string {
	return c.ServiceURL("instances", instanceID, "users")
}