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