func OneLife(caller base.FacadeCaller, tag names.Tag) (life.Value, error) {
	result, err := Life(caller, []names.Tag{tag})
	if err != nil {
		return "", err
	}
	if len(result) != 1 {
		return "", errors.Errorf("expected 1 result, got %d", len(result))
	}
	if err := result[0].Error; err != nil {
		return "", err
	}
	return result[0].Life, nil
}
// OneLife requests the life cycle of the given entity from the given
// server-side API facade via the given caller.
OneLife requests the life cycle of the given entity from the given
server-side API facade via the given caller.
// OneLife requests the life cycle of the given entity from the given // server - side API facade via the given caller .
func OneLife(caller base.FacadeCaller, tag names.Tag) (life.Value, error) {
	result, err := Life(caller, []names.Tag{tag})
	if err != nil {
		return "", err
	}
	if len(result) != 1 {
		return "", errors.Errorf("expected 1 result, got %d", len(result))
	}
	if err := result[0].Error; err != nil {
		return "", err
	}
	return result[0].Life, nil
}
func OneLife ( caller base . FacadeCaller , tag names . Tag ) ( life . Value , error ) { result , err := Life ( caller , [ ] names . Tag { tag } ) if err != nil { return " " , err } if len ( result ) != 1 { return " " , errors . Errorf ( " " , len ( result ) ) } if err := result [ 0 ] . Error ; err != nil { return " " , err } return result [ 0 ] . Life , nil }
OneLife requests the life cycle of the given entity from the given
server-side API facade via the given caller.
OneLife requests the life cycle of the given entity from the given server - side API facade via the given caller .