provider

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 2 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 {
	CreateDatabase(context.Context, *crd.Database) (string, error)
	DeleteDatabase(context.Context, *crd.Database) error
	ServiceProvider
}

DatabaseProvider is the interface for creating and deleting databases this is the main interface that should be implemented if a new provider is created

type ServiceProvider

type ServiceProvider interface {
	CreateService(ctx context.Context, namespace string, hostname string, internalname string) error
	DeleteService(ctx context.Context, namespace string, dbname string) error
	GetSecret(ctx context.Context, namepspace string, pwname string, pwkey string) (string, error)
}

Source Files

Jump to

Keyboard shortcuts

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