# Functions
CreateRepo takes a Repo object and saves it to the database Repos with the same name are updated.
CreateRepos takes an array of Repos and saves them to the database Repos with the same name are updated.
CreateUser takes a User object and saves it to the database Users with the same email are updated.
DeleteRepo by name.
GetRepo by name.
GetUserByEmail finds a user given an email.
ListRepos returns a list of all repos.
NewMockSession returns a mocked Session.
# Constants
ReposCollection is the name of the repos collection.
UserKey is the context key for the User data in the request context.
UsersCollection is the name of the users collection.
# Variables
MockRepos contains the mocked repos returned by the database.
MockUser contains the mock user returned by the database.
OfficialRepos are the official Kubernetes repos.
# Structs
MockDBConfig describes configuration for the mock db session.
Repo describes a chart repository.
User describes a user.
UserClaims describes a JWT claim for a user.