mongodb

package
v2.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func NewJobsStore(database *mongo.Database) (api.JobsStore, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL