Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPostgresDBValidator ¶
func NewPostgresDBValidator() *postgresDBvalidator
Types ¶
type CustomLogger ¶
type CustomLogger struct{}
func NewLogger ¶
func NewLogger() *CustomLogger
func (*CustomLogger) Error ¶
func (c *CustomLogger) Error(message string)
func (*CustomLogger) Fatal ¶
func (c *CustomLogger) Fatal(message string)
func (*CustomLogger) Info ¶
func (c *CustomLogger) Info(message string)
type DBWorker ¶
type DBWorker struct { *DBWorkerConfig PostgresDBValidator Transformer Logger core.DBCreateGetter core.StatusUpdater core.CredentialsStorer core.MetricsExporterCreator }
func NewDBWorker ¶
func NewDBWorker( r core.DBCreateGetter, c core.CredentialsStorer, m core.MetricsExporterCreator, cfg *DBWorkerConfig, p PostgresDBValidator, l Logger, t Transformer, u core.StatusUpdater, ) *DBWorker
NewRDSWorker returns new DBWorker instance for handling change events on postgresDB crd
type DBWorkerConfig ¶
type DBWorkerConfig struct {
// contains filtered or unexported fields
}
func NewConfig ¶
func NewConfig(c int, s string) *DBWorkerConfig
type Optimus ¶
type Optimus struct{}
func NewOptimus ¶
func NewOptimus() *Optimus
func (*Optimus) CRDToRequest ¶
func (o *Optimus) CRDToRequest(crd *v1alpha1.PostgresDB) *database.Request
type PostgresDBValidator ¶
type PostgresDBValidator interface {
Validate(crd *v1alpha1.PostgresDB) error
}
type Transformer ¶
type Transformer interface {
CRDToRequest(crd *v1alpha1.PostgresDB) *database.Request
}
Click to show internal directories.
Click to hide internal directories.