migration

package
v0.0.0-...-cc99bfc Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: GPL-3.0, GPL-3.0-or-later Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToMongodb

func ConnectToMongodb(log *logrus.Logger, conf config.Mongodb) *mongo.Client

ConnectToMongodb connects to the MongoDB and return the connection

func Migrate

func Migrate(log *logrus.Logger, client *mongo.Database)

Migrate migrate the client database

func MigrateAlertsSchema

func MigrateAlertsSchema(log *logrus.Logger, client *mongo.Database)

MigrateAlertsSchema create or update the alerts schema

func MigrateHostsSchema

func MigrateHostsSchema(log *logrus.Logger, client *mongo.Database)

MigrateHostsSchema create or update the hosts schema

func MigrateOracleDatabaseAgreementsSchema

func MigrateOracleDatabaseAgreementsSchema(log *logrus.Logger, client *mongo.Database)

MigrateOracleDatabaseAgreementsSchema create or update the agreements_oracle_database schema

func MigratePatchingFunctionsSchema

func MigratePatchingFunctionsSchema(log *logrus.Logger, client *mongo.Database)

MigratePatchingFunctionsSchema create or update the patching_functions schema

func UpdateDataSchemas

func UpdateDataSchemas(log *logrus.Logger, client *mongo.Database)

UpdateDataSchemas updates the schema of the data in the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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