Documentation ¶
Index ¶
- func ConnectToMongodb(log *logrus.Logger, conf config.Mongodb) *mongo.Client
- func Migrate(log *logrus.Logger, client *mongo.Database)
- func MigrateAlertsSchema(log *logrus.Logger, client *mongo.Database)
- func MigrateHostsSchema(log *logrus.Logger, client *mongo.Database)
- func MigrateOracleDatabaseAgreementsSchema(log *logrus.Logger, client *mongo.Database)
- func MigratePatchingFunctionsSchema(log *logrus.Logger, client *mongo.Database)
- func UpdateDataSchemas(log *logrus.Logger, client *mongo.Database)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToMongodb ¶
ConnectToMongodb connects to the MongoDB and return the connection
func MigrateAlertsSchema ¶
MigrateAlertsSchema create or update the alerts schema
func MigrateHostsSchema ¶
MigrateHostsSchema create or update the hosts schema
func MigrateOracleDatabaseAgreementsSchema ¶
MigrateOracleDatabaseAgreementsSchema create or update the agreements_oracle_database schema
func MigratePatchingFunctionsSchema ¶
MigratePatchingFunctionsSchema create or update the patching_functions schema
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.