Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseProvider ¶
type DatabaseProvider interface { CheckConnection() error CreateDB(spec *v1alpha1.DatabaseSpec) error CreateUser(spec *v1alpha1.DatabaseUserSpec) error CreateRole() error }
type PostgreSQL ¶
type PostgreSQL struct {
v1.DatabaseHostSpec
}
func NewPostgresClient ¶
func NewPostgresClient(spec v1.DatabaseHostSpec) *PostgreSQL
func (*PostgreSQL) CheckConnection ¶
func (p *PostgreSQL) CheckConnection() error
func (*PostgreSQL) CreateDB ¶
func (p *PostgreSQL) CreateDB(spec *v1alpha1.DatabaseSpec) error
func (*PostgreSQL) CreateUser ¶
func (p *PostgreSQL) CreateUser(spec *v1alpha1.DatabaseUserSpec) error
Click to show internal directories.
Click to hide internal directories.