Documentation ¶
Index ¶
- func NewEventsStore(database *mongo.Database) (api.EventsStore, error)
- func NewJobsStore(database *mongo.Database) (api.JobsStore, error)
- func NewLogsStore(database *mongo.Database) api.CoolLogsStore
- func NewProjectRoleAssignmentsStore(database *mongo.Database) api.ProjectRoleAssignmentsStore
- func NewProjectsStore(database *mongo.Database) (api.ProjectsStore, error)
- func NewRoleAssignmentsStore(database *mongo.Database) api.RoleAssignmentsStore
- func NewServiceAccountsStore(database *mongo.Database) (api.ServiceAccountsStore, error)
- func NewSessionsStore(database *mongo.Database) (api.SessionsStore, error)
- func NewUsersStore(database *mongo.Database) (api.UsersStore, error)
- func NewWorkersStore(database *mongo.Database) (api.WorkersStore, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventsStore ¶
func NewEventsStore(database *mongo.Database) (api.EventsStore, error)
NewEventsStore returns a MongoDB-based implementation of the api.EventsStore interface.
func NewJobsStore ¶
NewJobsStore returns a MongoDB-based implementation of the api.JobsStore interface.
func NewLogsStore ¶
func NewLogsStore(database *mongo.Database) api.CoolLogsStore
NewLogsStore returns a MongoDB-based implementation of the api.LogsStore interface. This implementation relies on a log aggregator having forwarded and stored log entries-- a process which necessarily introduces some latency. Callers should favor another implementation of the api.LogsStore interface and fall back on this implementation when the other fails.
func NewProjectRoleAssignmentsStore ¶
func NewProjectRoleAssignmentsStore( database *mongo.Database, ) api.ProjectRoleAssignmentsStore
NewProjectRoleAssignmentsStore returns a MongoDB-based implementation of the api.ProjectRoleAssignmentsStore interface.
func NewProjectsStore ¶
func NewProjectsStore(database *mongo.Database) (api.ProjectsStore, error)
NewProjectsStore returns a MongoDB-based implementation of the api.ProjectsStore interface.
func NewRoleAssignmentsStore ¶
func NewRoleAssignmentsStore( database *mongo.Database, ) api.RoleAssignmentsStore
NewRoleAssignmentsStore returns a MongoDB-based implementation of the api.RoleAssignmentsStore interface.
func NewServiceAccountsStore ¶
func NewServiceAccountsStore( database *mongo.Database, ) (api.ServiceAccountsStore, error)
NewServiceAccountsStore returns a MongoDB-based implementation of the api.ServiceAccountsStore interface.
func NewSessionsStore ¶
func NewSessionsStore(database *mongo.Database) (api.SessionsStore, error)
NewSessionsStore returns a MongoDB-based implementation of the api.SessionsStore interface.
func NewUsersStore ¶
func NewUsersStore(database *mongo.Database) (api.UsersStore, error)
NewUsersStore returns a MongoDB-based implementation of the api.UsersStore interface.
func NewWorkersStore ¶
func NewWorkersStore(database *mongo.Database) (api.WorkersStore, error)
NewWorkersStore returns a MongoDB-based implementation of the api.WorkersStore interface.
Types ¶
This section is empty.