worker

package
v0.0.0-...-cc4f0fa Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: MIT Imports: 8 Imported by: 0

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

func NewDBWorker

NewRDSWorker returns new DBWorker instance for handling change events on postgresDB crd

func (*DBWorker) OnCreate

func (w *DBWorker) OnCreate(obj interface{})

func (*DBWorker) OnDelete

func (w *DBWorker) OnDelete(obj interface{})

OnDelete handles delete event of postgresdb

func (*DBWorker) OnUpdate

func (w *DBWorker) OnUpdate(obj interface{}, newObj interface{})

OnUpdate handles update event of postgresdb

type DBWorkerConfig

type DBWorkerConfig struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(c int, s string) *DBWorkerConfig

type Logger

type Logger interface {
	Error(message string)
	Info(message string)
	Fatal(message string)
}

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
}

Jump to

Keyboard shortcuts

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