Exemplo n.º 1
0
func deleteGuest(c *cli.Client, id string) cli.JMap {
	guest, resp := c.Delete("guest", "guests/"+id)
	j := cli.JMap{
		"id":    resp.Header.Get("x-guest-job-id"),
		"guest": guest,
	}
	return j
}
Exemplo n.º 2
0
func deleteSubnet(c *cli.Client, hv, subnet string) cli.JMap {
	sub, _ := c.Delete("subnet", "hypervisors/"+hv+"/subnets/"+subnet)
	return sub
}
Exemplo n.º 3
0
func deleteHV(c *cli.Client, id string) cli.JMap {
	hv, _ := c.Delete("hypervisor", "hypervisors/"+id)
	return hv
}