provider

package
v0.0.0-...-20f624e Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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 MySQL

type MySQL struct {
}

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

Jump to

Keyboard shortcuts

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