func findSystemTeams(teams []envelope.Unsigned) (*envelope.Unsigned, *envelope.Unsigned, error) {
	var members, machines *envelope.Unsigned
	for _, t := range teams {
		var team = t
		tBody := t.Body.(*primitive.Team)

		if tBody.TeamType == primitive.SystemTeam {
			switch tBody.Name {
			case "member":
				members = &team
			case "machine":
				machines = &team
			}
		}

		if members != nil && machines != nil {
			break
		}
	}

	var errs []string
	if members == nil {
		errs = append(errs, "Member team not found.")
	}
	if machines == nil {
		errs = append(errs, "Machine team not found.")
	}

	if len(errs) > 0 {
		return nil, nil, &apitypes.Error{
			Err:  errs,
			Type: apitypes.NotFoundError,
		}
	}

	return members, machines, nil
}
// findSystemTeams takes in a list of team objects and returns the members and machines
// teams.
findSystemTeams takes in a list of team objects and returns the members and machines
teams.
// findSystemTeams takes in a list of team objects and returns the members and machines // teams .
func findSystemTeams(teams []envelope.Unsigned) (*envelope.Unsigned, *envelope.Unsigned, error) {
	var members, machines *envelope.Unsigned
	for _, t := range teams {
		var team = t
		tBody := t.Body.(*primitive.Team)
		if tBody.TeamType == primitive.SystemTeam {
			switch tBody.Name {
			case "member":
				members = &team
			case "machine":
				machines = &team
			}
		}
		if members != nil && machines != nil {
			break
		}
	}
	var errs []string
	if members == nil {
		errs = append(errs, "Member team not found.")
	}
	if machines == nil {
		errs = append(errs, "Machine team not found.")
	}
	if len(errs) > 0 {
		return nil, nil, &apitypes.Error{
			Err:  errs,
			Type: apitypes.NotFoundError,
		}
	}
	return members, machines, nil
}
func findSystemTeams ( teams [ ] envelope . Unsigned ) ( * envelope . Unsigned , * envelope . Unsigned , error ) { var members , machines * envelope . Unsigned for _ , t := range teams { var team = t tBody := t . Body . ( * primitive . Team ) if tBody . TeamType == primitive . SystemTeam { switch tBody . Name { case " " : members = & team case " " : machines = & team } } if members != nil && machines != nil { break } } var errs [ ] string if members == nil { errs = append ( errs , " " ) } if machines == nil { errs = append ( errs , " " ) } if len ( errs ) > 0 { return nil , nil , & apitypes . Error { Err : errs , Type : apitypes . NotFoundError , } } return members , machines , nil }
findSystemTeams takes in a list of team objects and returns the members and machines
teams.
findSystemTeams takes in a list of team objects and returns the members and machines teams .