func (c *Client) AddCharm(curl *charm.URL, channel csparams.Channel, force bool) error {
	args := params.AddCharm{
		URL:     curl.String(),
		Channel: string(channel),
		Force:   force,
	}
	if err := c.facade.FacadeCall("AddCharm", args, nil); err != nil {
		return errors.Trace(err)
	}
	return nil
}
// AddCharm adds the given charm URL (which must include revision) to
// the model, if it does not exist yet. Local charms are not
// supported, only charm store URLs. See also AddLocalCharm() in the
// client-side API.
//
// If the AddCharm API call fails because of an authorization error
// when retrieving the charm from the charm store, an error
// satisfying params.IsCodeUnauthorized will be returned.
AddCharm adds the given charm URL (which must include revision) to
the model, if it does not exist yet. Local charms are not
supported, only charm store URLs. See also AddLocalCharm() in the
client-side API.

If the AddCharm API call fails because of an authorization error
when retrieving the charm from the charm store, an error
satisfying params.IsCodeUnauthorized will be returned.
// AddCharm adds the given charm URL ( which must include revision ) to // the model if it does not exist yet . Local charms are not // supported only charm store URLs . See also AddLocalCharm () in the // client - side API . // // If the AddCharm API call fails because of an authorization error // when retrieving the charm from the charm store an error // satisfying params . IsCodeUnauthorized will be returned .
func (c *Client) AddCharm(curl *charm.URL, channel csparams.Channel, force bool) error {
	args := params.AddCharm{
		URL:     curl.String(),
		Channel: string(channel),
		Force:   force,
	}
	if err := c.facade.FacadeCall("AddCharm", args, nil); err != nil {
		return errors.Trace(err)
	}
	return nil
}
func ( c * Client ) AddCharm ( curl * charm . URL , channel csparams . Channel , force bool ) error { args := params . AddCharm { URL : curl . String ( ) , Channel : string ( channel ) , Force : force , } if err := c . facade . FacadeCall ( " " , args , nil ) ; err != nil { return errors . Trace ( err ) } return nil }
AddCharm adds the given charm URL (which must include revision) to
the model, if it does not exist yet.
AddCharm adds the given charm URL ( which must include revision ) to the model if it does not exist yet .