예제 #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
}