Documentation
¶
Index ¶
- type Local
- func (l *Local) CreateDatabase(ctx context.Context, db *crd.Database) (string, error)
- func (l *Local) CreateService(ctx context.Context, namespace string, hostname string, internalname string) error
- func (l *Local) DeleteDatabase(ctx context.Context, db *crd.Database) error
- func (l *Local) DeleteService(ctx context.Context, namespace string, dbname string) error
- func (l *Local) GetSecret(ctx context.Context, namespace string, name string, key string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Local ¶
type Local struct { ServiceProvider provider.ServiceProvider SkipWaiting bool // contains filtered or unexported fields }
func (*Local) CreateDatabase ¶
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 ¶
DeleteDatabase deletes the db pod and pvc
func (*Local) DeleteService ¶
Click to show internal directories.
Click to hide internal directories.