Version: v0.1.0 Latest Latest

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 15 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type Local

type Local struct {
	ServiceProvider provider.ServiceProvider

	SkipWaiting bool
	// contains filtered or unexported fields

func New

func New(db *crd.Database, kc kubernetes.Interface, repository string) (*Local, error)

func (*Local) CreateDatabase

func (l *Local) CreateDatabase(ctx context.Context, db *crd.Database) (string, error)

CreateDatabase creates a database from the CRD database object, is also ensures that the correct subnets are created for the database so we can access it

func (*Local) CreateService

func (l *Local) CreateService(ctx context.Context, namespace string, hostname string, internalname string) error

CreateService Creates or updates a service in Kubernetes with the new information

func (*Local) DeleteDatabase

func (l *Local) DeleteDatabase(ctx context.Context, db *crd.Database) error

DeleteDatabase deletes the db pod and pvc

func (*Local) DeleteService

func (l *Local) DeleteService(ctx context.Context, namespace string, dbname string) error

func (*Local) GetSecret

func (l *Local) GetSecret(ctx context.Context, namespace string, name string, key string) (string, error)

Jump to

Keyboard shortcuts

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