func OriginForJuju(tag names.Tag, controller, model string, ver version.Number) (Origin, error) {
	oType, err := ParseOriginType(tag.Kind())
	if err != nil {
		return Origin{}, errors.Annotate(err, "invalid tag")
	}
	return originForJuju(oType, tag.Id(), controller, model, ver), nil
}
// OriginForJuju populates a new origin for the juju client.
OriginForJuju populates a new origin for the juju client.
// OriginForJuju populates a new origin for the juju client .
func OriginForJuju(tag names.Tag, controller, model string, ver version.Number) (Origin, error) {
	oType, err := ParseOriginType(tag.Kind())
	if err != nil {
		return Origin{}, errors.Annotate(err, "invalid tag")
	}
	return originForJuju(oType, tag.Id(), controller, model, ver), nil
}
func OriginForJuju ( tag names . Tag , controller , model string , ver version . Number ) ( Origin , error ) { oType , err := ParseOriginType ( tag . Kind ( ) ) if err != nil { return Origin { } , errors . Annotate ( err , " " ) } return originForJuju ( oType , tag . Id ( ) , controller , model , ver ) , nil }
OriginForJuju populates a new origin for the juju client.
OriginForJuju populates a new origin for the juju client .