Documentation ¶
Index ¶
- type Database
- func (d *Database) BakeryRootKeyStore(policy mgorootkeystore.Policy) bakery.RootKeyStore
- func (d *Database) Close()
- func (d *Database) DebugStatusCheckerFuncs() []debugstatus.CheckerFunc
- func (d *Database) MeetingStore() meeting.Store
- func (d *Database) ProviderDataStore() store.ProviderDataStore
- func (d *Database) Store() store.Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
A Database provides a wrapper around a single mongodb database that can be used as the persistent storage for the various types of store required by the identity service.
func NewDatabase ¶
NewDatabase creates a new Database using the given *mgo.Database. The given Database's underlying session will be copied. The Database must be closed when finished with.
func (*Database) BakeryRootKeyStore ¶
func (d *Database) BakeryRootKeyStore(policy mgorootkeystore.Policy) bakery.RootKeyStore
BakeryRootKeyStore returns a new bakery.RootKeyStore implementation using this database for persistent storage.
func (*Database) Close ¶
func (d *Database) Close()
Close cleans up resources associated with the database.
func (*Database) DebugStatusCheckerFuncs ¶
func (d *Database) DebugStatusCheckerFuncs() []debugstatus.CheckerFunc
DebugStatusCheckerFuncs returns a set of debugstatus.CheckerFuncs that can be used to provide a status of the database in the /debug/status endpoint.
func (*Database) MeetingStore ¶
MeetingStore returns a new meeting.Store implementation using this database for persistent storage.
func (*Database) ProviderDataStore ¶
func (d *Database) ProviderDataStore() store.ProviderDataStore
ProviderDataStore returns a new store.ProviderDataStore implementation using this database for persistent storage.