func FindAllTaskQueues() ([]TaskQueue, error) { taskQueues := []TaskQueue{} err := db.FindAll( TaskQueuesCollection, bson.M{}, db.NoProjection, db.NoSort, db.NoSkip, db.NoLimit, &taskQueues, ) return taskQueues, err }
// 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 }
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 }
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 }