rdb

package
v0.0.0-...-814654e Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SecretPasswordKey is the key for accessing the pasword in the given secret
	SecretPasswordKey = "password"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseManager

type DatabaseManager struct {
	client.Client
	API *rdb.API
	scaleway.Manager
}

DatabaseManager manages the RDB databsses

func (*DatabaseManager) Delete

func (m *DatabaseManager) Delete(ctx context.Context, obj runtime.Object) (bool, error)

Delete deletes the RDB database resource

func (*DatabaseManager) Ensure

func (m *DatabaseManager) Ensure(ctx context.Context, obj runtime.Object) (bool, error)

Ensure reconciles the RDB database resource

func (*DatabaseManager) GetOwners

func (m *DatabaseManager) GetOwners(ctx context.Context, obj runtime.Object) ([]scaleway.Owner, error)

GetOwners returns the owners of the RDB database resource

func (*DatabaseManager) ValidateCreate

func (m *DatabaseManager) ValidateCreate(ctx context.Context, obj runtime.Object) (field.ErrorList, error)

ValidateCreate validates the creation of a RDB Database

func (*DatabaseManager) ValidateUpdate

func (m *DatabaseManager) ValidateUpdate(ctx context.Context, oldObj runtime.Object, obj runtime.Object) (field.ErrorList, error)

ValidateUpdate validates the update of a RDB Database

type InstanceManager

type InstanceManager struct {
	client.Client
	API *rdb.API
	scaleway.Manager
	Log logr.Logger
}

InstanceManager manages the RDB instances

func (*InstanceManager) Delete

func (m *InstanceManager) Delete(ctx context.Context, obj runtime.Object) (bool, error)

Delete deletes the RDB instance resource

func (*InstanceManager) Ensure

func (m *InstanceManager) Ensure(ctx context.Context, obj runtime.Object) (bool, error)

Ensure reconciles the RDB instance resource

func (*InstanceManager) GetOwners

func (m *InstanceManager) GetOwners(ctx context.Context, obj runtime.Object) ([]scaleway.Owner, error)

GetOwners returns the owners of the RDB instance resource

func (*InstanceManager) ValidateCreate

func (m *InstanceManager) ValidateCreate(ctx context.Context, obj runtime.Object) (field.ErrorList, error)

ValidateCreate validates the creation of a RDB Instance

func (*InstanceManager) ValidateUpdate

func (m *InstanceManager) ValidateUpdate(ctx context.Context, oldObj runtime.Object, obj runtime.Object) (field.ErrorList, error)

ValidateUpdate validates the update of a RDB Instance

type UserManager

type UserManager struct {
	client.Client
	API *rdb.API
	scaleway.Manager
}

UserManager manages the RDB users

func (*UserManager) Delete

func (m *UserManager) Delete(ctx context.Context, obj runtime.Object) (bool, error)

Delete deletes the RDB user resource

func (*UserManager) Ensure

func (m *UserManager) Ensure(ctx context.Context, obj runtime.Object) (bool, error)

Ensure reconciles the RDB user resource

func (*UserManager) GetOwners

func (m *UserManager) GetOwners(ctx context.Context, obj runtime.Object) ([]scaleway.Owner, error)

GetOwners returns the owners of the RDB user resource

Jump to

Keyboard shortcuts

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