func Life(caller base.FacadeCaller, tags []names.Tag) ([]params.LifeResult, error) {
	if len(tags) == 0 {
		return []params.LifeResult{}, nil
	}
	var result params.LifeResults
	entities := make([]params.Entity, len(tags))
	for i, t := range tags {
		entities[i] = params.Entity{t.String()}
	}
	args := params.Entities{Entities: entities}
	if err := caller.FacadeCall("Life", args, &result); err != nil {
		return []params.LifeResult{}, err
	}
	return result.Results, nil
}
// Life requests the life cycle of the given entities from the given
// server-side API facade via the given caller.
Life requests the life cycle of the given entities from the given
server-side API facade via the given caller.
// Life requests the life cycle of the given entities from the given // server - side API facade via the given caller .
func Life(caller base.FacadeCaller, tags []names.Tag) ([]params.LifeResult, error) {
	if len(tags) == 0 {
		return []params.LifeResult{}, nil
	}
	var result params.LifeResults
	entities := make([]params.Entity, len(tags))
	for i, t := range tags {
		entities[i] = params.Entity{t.String()}
	}
	args := params.Entities{Entities: entities}
	if err := caller.FacadeCall("Life", args, &result); err != nil {
		return []params.LifeResult{}, err
	}
	return result.Results, nil
}
func Life ( caller base . FacadeCaller , tags [ ] names . Tag ) ( [ ] params . LifeResult , error ) { if len ( tags ) == 0 { return [ ] params . LifeResult { } , nil } var result params . LifeResults entities := make ( [ ] params . Entity , len ( tags ) ) for i , t := range tags { entities [ i ] = params . Entity { t . String ( ) } } args := params . Entities { Entities : entities } if err := caller . FacadeCall ( " " , args , & result ) ; err != nil { return [ ] params . LifeResult { } , err } return result . Results , nil }
Life requests the life cycle of the given entities from the given
server-side API facade via the given caller.
Life requests the life cycle of the given entities from the given server - side API facade via the given caller .