Documentation ¶
Index ¶
- Variables
- func ProjectFromDBX(ctx context.Context, project *dbx.Project) (_ *console.Project, err error)
- func UserFromDBX(ctx context.Context, user *dbx.User) (_ *console.User, err error)
- type ConsoleDB
- func (db *ConsoleDB) APIKeys() console.APIKeys
- func (db *ConsoleDB) AccountFreezeEvents() console.AccountFreezeEvents
- func (db *ConsoleDB) ProjectInvitations() console.ProjectInvitations
- func (db *ConsoleDB) ProjectMembers() console.ProjectMembers
- func (db *ConsoleDB) Projects() console.Projects
- func (db *ConsoleDB) RegistrationTokens() console.RegistrationTokens
- func (db *ConsoleDB) ResetPasswordTokens() console.ResetPasswordTokens
- func (db *ConsoleDB) Users() console.Users
- func (db *ConsoleDB) WebappSessions() consoleauth.WebappSessions
- func (db *ConsoleDB) WithTx(ctx context.Context, fn func(context.Context, console.DBTx) error) error
- type DBTx
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error is the default satellitedb errs class. Error = errs.Class("consoledb") )
Functions ¶
func ProjectFromDBX ¶
ProjectFromDBX is used for creating Project entity from autogenerated dbx.Project struct.
Types ¶
type ConsoleDB ¶
type ConsoleDB struct { *dbx.DB ApikeysLRUOptions lrucache.Options Impl dbutil.Implementation Methods dbx.DriverMethods ApikeysOnce *sync.Once // contains filtered or unexported fields }
ConsoleDB contains access to different satellite databases.
func (*ConsoleDB) AccountFreezeEvents ¶
func (db *ConsoleDB) AccountFreezeEvents() console.AccountFreezeEvents
AccountFreezeEvents is a getter for AccountFreezeEvents repository.
func (*ConsoleDB) ProjectInvitations ¶
func (db *ConsoleDB) ProjectInvitations() console.ProjectInvitations
ProjectInvitations is a getter for ProjectInvitations repository.
func (*ConsoleDB) ProjectMembers ¶
func (db *ConsoleDB) ProjectMembers() console.ProjectMembers
ProjectMembers is a getter for ProjectMembers repository.
func (*ConsoleDB) RegistrationTokens ¶
func (db *ConsoleDB) RegistrationTokens() console.RegistrationTokens
RegistrationTokens is a getter for RegistrationTokens repository.
func (*ConsoleDB) ResetPasswordTokens ¶
func (db *ConsoleDB) ResetPasswordTokens() console.ResetPasswordTokens
ResetPasswordTokens is a getter for ResetPasswordTokens repository.
func (*ConsoleDB) WebappSessions ¶
func (db *ConsoleDB) WebappSessions() consoleauth.WebappSessions
WebappSessions is a getter for WebappSessions repository.
Click to show internal directories.
Click to hide internal directories.