func InstallOneFromChannel(name string, channel string, base RefreshBase) (RefreshConfig, error) {
	if name == "" {
		return nil, logAndReturnError(errors.NotValidf("empty name"))
	}
	if err := validateBase(base); err != nil {
		return nil, logAndReturnError(err)
	}
	uuid, err := utils.NewUUID()
	if err != nil {
		return nil, logAndReturnError(err)
	}
	return executeOne{
		action:      InstallAction,
		instanceKey: uuid.String(),
		Name:        name,
		Channel:     &channel,
		Base:        base,
		fields:      requiredRefreshFields,
	}, nil
}
// InstallOneFromChannel creates a request config using the channel and not the
// revision for requesting only one charm.
InstallOneFromChannel creates a request config using the channel and not the
revision for requesting only one charm.
// InstallOneFromChannel creates a request config using the channel and not the // revision for requesting only one charm .
func InstallOneFromChannel(name string, channel string, base RefreshBase) (RefreshConfig, error) {
	if name == "" {
		return nil, logAndReturnError(errors.NotValidf("empty name"))
	}
	if err := validateBase(base); err != nil {
		return nil, logAndReturnError(err)
	}
	uuid, err := utils.NewUUID()
	if err != nil {
		return nil, logAndReturnError(err)
	}
	return executeOne{
		action:      InstallAction,
		instanceKey: uuid.String(),
		Name:        name,
		Channel:     &channel,
		Base:        base,
		fields:      requiredRefreshFields,
	}, nil
}
func InstallOneFromChannel ( name string , channel string , base RefreshBase ) ( RefreshConfig , error ) { if name == " " { return nil , logAndReturnError ( errors . NotValidf ( " " ) ) } if err := validateBase ( base ) ; err != nil { return nil , logAndReturnError ( err ) } uuid , err := utils . NewUUID ( ) if err != nil { return nil , logAndReturnError ( err ) } return executeOne { action : InstallAction , instanceKey : uuid . String ( ) , Name : name , Channel : & channel , Base : base , fields : requiredRefreshFields , } , nil }
InstallOneFromChannel creates a request config using the channel and not the
revision for requesting only one charm.
InstallOneFromChannel creates a request config using the channel and not the revision for requesting only one charm .