| "github.com/racker/perigee" |
| "github.com/rackspace/gophercloud" |
| func GetDefaultConfig(client *gophercloud.ServiceClient, id string) ConfigResult { |
| resp, err := perigee.Request("GET", configURL(client, id), perigee.Options{ |
| MoreHeaders: client.AuthenticatedHeaders(), |
| res.Header = resp.HttpResponse.Header |
| func AssociateWithConfigGroup(client *gophercloud.ServiceClient, instanceID, configGroupID string) UpdateResult { |
| reqBody := map[string]string{ |
| "configuration": configGroupID, |
| resp, err := perigee.Request("PUT", resourceURL(client, instanceID), perigee.Options{ |
| MoreHeaders: client.AuthenticatedHeaders(), |
| ReqBody: map[string]map[string]string{"instance": reqBody}, |
| res.Header = resp.HttpResponse.Header |