Documentation ¶
Overview ¶
Package database :
Package database :
Index ¶
- func CoackroachCreateDatabase(certsDir, host, database, password string) error
- func CoackroachInit(certsDir, host string) error
- func CoackroachStart(dataDir, certsDir, node, bindAddress, httpAddress, members string) error
- func GenerateRandomHash() string
- func IsDatabaseCreated(dataDir, node string) (result bool, err error)
- func IsNodeExist(dataDir, node string) (result bool)
- type DatabaseConnection
- func (dc DatabaseConnection) GetConfigurationCluster() *cmodels.ConfigurationCluster
- func (dc DatabaseConnection) GetDatabaseClientByTenant(tenantName string) *gorm.DB
- func (dc DatabaseConnection) GetGandalfDatabaseClient() *gorm.DB
- func (dc DatabaseConnection) GetLogicalComponent() *models.LogicalComponent
- func (dc DatabaseConnection) GetPivot() *models.Pivot
- func (dc DatabaseConnection) InitGandalfDatabase(gandalfDatabaseClient *gorm.DB, logicalName, bindAddress string) (login []string, password []string, err error)
- func (dc DatabaseConnection) InitTenantDatabase(tenantDatabaseClient *gorm.DB) (login []string, password []string, err error)
- func (dc DatabaseConnection) NewDatabase(name, password string) (err error)
- func (dc DatabaseConnection) SetLogicalComponent(logicalComponent *models.LogicalComponent)
- func (dc DatabaseConnection) SetPivot(pivot *models.Pivot)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoackroachInit ¶
func CoackroachStart ¶
func GenerateRandomHash ¶
func GenerateRandomHash() string
func IsDatabaseCreated ¶
func IsNodeExist ¶
Types ¶
type DatabaseConnection ¶
type DatabaseConnection struct {
// contains filtered or unexported fields
}
func NewDatabaseConnection ¶
func NewDatabaseConnection(configurationCluster *cmodels.ConfigurationCluster) *DatabaseConnection
func (DatabaseConnection) GetConfigurationCluster ¶
func (dc DatabaseConnection) GetConfigurationCluster() *cmodels.ConfigurationCluster
func (DatabaseConnection) GetDatabaseClientByTenant ¶
func (dc DatabaseConnection) GetDatabaseClientByTenant(tenantName string) *gorm.DB
GetDatabaseClientByTenant : Cluster database client getter by tenant.
func (DatabaseConnection) GetGandalfDatabaseClient ¶
func (dc DatabaseConnection) GetGandalfDatabaseClient() *gorm.DB
TODO REVOIR
func (DatabaseConnection) GetLogicalComponent ¶
func (dc DatabaseConnection) GetLogicalComponent() *models.LogicalComponent
func (DatabaseConnection) GetPivot ¶
func (dc DatabaseConnection) GetPivot() *models.Pivot
func (DatabaseConnection) InitGandalfDatabase ¶
func (dc DatabaseConnection) InitGandalfDatabase(gandalfDatabaseClient *gorm.DB, logicalName, bindAddress string) (login []string, password []string, err error)
InitGandalfDatabase : Gandalf database init.
func (DatabaseConnection) InitTenantDatabase ¶
func (dc DatabaseConnection) InitTenantDatabase(tenantDatabaseClient *gorm.DB) (login []string, password []string, err error)
InitTenantDatabase : Tenant database init.
func (DatabaseConnection) NewDatabase ¶
func (dc DatabaseConnection) NewDatabase(name, password string) (err error)
NewDatabase :
func (DatabaseConnection) SetLogicalComponent ¶
func (dc DatabaseConnection) SetLogicalComponent(logicalComponent *models.LogicalComponent)
func (DatabaseConnection) SetPivot ¶
func (dc DatabaseConnection) SetPivot(pivot *models.Pivot)
Click to show internal directories.
Click to hide internal directories.