Documentation
¶
Overview ¶
Package dependency provides different manager that will be used to instantiate the different services and daos of the API. It's one way to inject the different dependencies into the different services/daos.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersistenceManager ¶
type PersistenceManager interface {
GetDashboard() dashboard.DAO
GetDatasource() datasource.DAO
GetEphemeralDashboard() ephemeraldashboard.DAO
GetFolder() folder.DAO
GetGlobalDatasource() globaldatasource.DAO
GetGlobalRole() globalrole.DAO
GetGlobalRoleBinding() globalrolebinding.DAO
GetGlobalSecret() globalsecret.DAO
GetGlobalVariable() globalvariable.DAO
GetHealth() health.DAO
GetPersesDAO() databaseModel.DAO
GetProject() project.DAO
GetRole() role.DAO
GetRoleBinding() rolebinding.DAO
GetSecret() secret.DAO
GetUser() user.DAO
GetVariable() variable.DAO
}
func NewPersistenceManager ¶
func NewPersistenceManager(conf config.Database) (PersistenceManager, error)
type ServiceManager ¶
type ServiceManager interface {
GetCrypto() crypto.Crypto
GetDashboard() dashboard.Service
GetDatasource() datasource.Service
GetEphemeralDashboard() ephemeraldashboard.Service
GetFolder() folder.Service
GetGlobalDatasource() globaldatasource.Service
GetGlobalRole() globalrole.Service
GetGlobalRoleBinding() globalrolebinding.Service
GetGlobalSecret() globalsecret.Service
GetGlobalVariable() globalvariable.Service
GetHealth() health.Service
GetJWT() crypto.JWT
GetMigration() migrate.Migration
GetPlugin() plugin.Plugin
GetProject() project.Service
GetSchema() schema.Schema
GetRBAC() rbac.RBAC
GetRole() role.Service
GetRoleBinding() rolebinding.Service
GetSecret() secret.Service
GetUser() user.Service
GetVariable() variable.Service
GetView() view.Service
}
func NewServiceManager ¶
func NewServiceManager(dao PersistenceManager, conf config.Config) (ServiceManager, error)
Click to show internal directories.
Click to hide internal directories.