enamlbosh/api.go
func (s *Client) PushCloudConfig(manifest []byte) error {
	ccm := enaml.NewCloudConfigManifest(manifest)
	req, err := s.newCloudConfigRequest(*ccm)
	if err != nil {
		return err
	}
	res, err := s.http.Do(req)
	if err != nil {
		return err
	}
	defer res.Body.Close()
	if res.StatusCode >= 400 {
		body, err := ioutil.ReadAll(res.Body)
		if err != nil {
			return err
		}
		return fmt.Errorf("%s error pushing cloud config to BOSH: %s", res.Status, string(body))
	}
	return nil
}
func (s *Client) PushCloudConfig(manifest []byte) error {
	ccm := enaml.NewCloudConfigManifest(manifest)
	req, err := s.newCloudConfigRequest(*ccm)
	if err != nil {
		return err
	}
	res, err := s.http.Do(req)
	if err != nil {
		return err
	}
	defer res.Body.Close()
	if res.StatusCode >= 400 {
		body, err := ioutil.ReadAll(res.Body)
		if err != nil {
			return err
		}
		return fmt.Errorf("%s error pushing cloud config to BOSH: %s", res.Status, string(body))
	}
	return nil
}
// PushCloudConfig uploads a cloud config to bosh.