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