databases

package
v0.0.0-...-296bd3d Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const CRDBAdminConnString = "postgresql://root:unused@localhost:%d/defaultdb?sslmode=disable"
View Source
const MySQLAdminConnString = "root:password@tcp(localhost:%d)/mysql?parseTime=true"
View Source
const PGAdminConnString = "postgresql://postgres:testpassword@localhost:%d/postgres?sslmode=disable"

Variables

This section is empty.

Functions

func CreateFromManifests

func CreateFromManifests(ctx context.Context, namespace, engine string, restConfig *rest.Config, mapper meta.RESTMapper)

Types

type CockroachProvider

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

func NewCockroachProvider

func NewCockroachProvider(mapper meta.RESTMapper, restConfig *rest.Config, namespace string) *CockroachProvider

func (*CockroachProvider) Cleanup

func (p *CockroachProvider) Cleanup(ctx context.Context, db *LogicalDatabase)

func (*CockroachProvider) New

type LogicalDatabase

type LogicalDatabase struct {
	Engine       string
	DatastoreURI string
	DatabaseName string
	ExtraConfig  map[string]string
}

type MySQLProvider

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

func NewMySQLProvider

func NewMySQLProvider(mapper meta.RESTMapper, restConfig *rest.Config, namespace string) *MySQLProvider

func (*MySQLProvider) Cleanup

func (p *MySQLProvider) Cleanup(ctx context.Context, db *LogicalDatabase)

func (*MySQLProvider) New

type PostgresProvider

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

func NewPostgresProvider

func NewPostgresProvider(mapper meta.RESTMapper, restConfig *rest.Config, namespace string) *PostgresProvider

func (*PostgresProvider) Cleanup

func (p *PostgresProvider) Cleanup(ctx context.Context, db *LogicalDatabase)

func (*PostgresProvider) New

type Provider

type Provider interface {
	New(ctx context.Context) *LogicalDatabase
	Cleanup(ctx context.Context, db *LogicalDatabase)
}

type SpannerProvider

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

func NewSpannerProvider

func NewSpannerProvider(mapper meta.RESTMapper, restConfig *rest.Config, namespace string) *SpannerProvider

func (*SpannerProvider) Cleanup

func (p *SpannerProvider) Cleanup(_ context.Context, _ *LogicalDatabase)

func (*SpannerProvider) New

Jump to

Keyboard shortcuts

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