k8s-rds: github.com/sorenmat/k8s-rds/local Index | Files

package local

import "github.com/sorenmat/k8s-rds/local"


Package Files

local_provider.go local_service.go

type Local Uses

type Local struct {
    ServiceProvider provider.ServiceProvider

    SkipWaiting bool
    // contains filtered or unexported fields

func New Uses

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

func (*Local) CreateDatabase Uses

func (r *Local) CreateDatabase(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 Uses

func (k *Local) CreateService(namespace string, hostname string, internalname string) error

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

func (*Local) DeleteDatabase Uses

func (r *Local) DeleteDatabase(db *crd.Database) error

DeleteDatabase deletes the db pod and pvc

func (*Local) DeleteService Uses

func (k *Local) DeleteService(namespace string, dbname string) error

func (*Local) GetSecret Uses

func (k *Local) GetSecret(namespace string, name string, key string) (string, error)

Package local imports 14 packages (graph) and is imported by 1 packages. Updated 2020-08-04. Refresh now. Tools for package owners.