示例#1
0
func FindAllTaskQueues() ([]TaskQueue, error) {
	taskQueues := []TaskQueue{}
	err := db.FindAll(
		TaskQueuesCollection,
		bson.M{},
		db.NoProjection,
		db.NoSort,
		db.NoSkip,
		db.NoLimit,
		&taskQueues,
	)
	return taskQueues, err
}
示例#2
0
// FindAllProjectRefs returns all project refs in the db
func FindAllProjectRefs() ([]ProjectRef, error) {
	projectRefs := []ProjectRef{}
	err := db.FindAll(
		ProjectRefCollection,
		bson.M{},
		db.NoProjection,
		db.NoSort,
		db.NoSkip,
		db.NoLimit,
		&projectRefs,
	)
	return projectRefs, err
}
示例#3
-1
文件: task.go 项目: pritten/evergreen
func FindAllTasks(query interface{}, projection interface{},
	sort []string, skip int, limit int) ([]Task, error) {
	tasks := []Task{}
	err := db.FindAll(
		TasksCollection,
		query,
		projection,
		sort,
		skip,
		limit,
		&tasks,
	)
	return tasks, err
}
示例#4
-1
func FindAllProcessRuntimes(query interface{},
	projection interface{}) ([]ProcessRuntime, error) {
	runtimes := []ProcessRuntime{}
	err := db.FindAll(
		RuntimesCollection,
		query,
		projection,
		db.NoSort,
		db.NoSkip,
		db.NoLimit,
		&runtimes,
	)
	return runtimes, err
}