sql

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMySQL

func AddMySQL(mgr manager.Manager) error

AddMySQL creates a new MySQLInstance Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

func AddPostgreSQL

func AddPostgreSQL(mgr manager.Manager) error

AddPostgreSQL creates a new PostgreSQLInstance Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type AzureMySQLServerHandler

type AzureMySQLServerHandler struct{}

AzureMySQLServerHandler is a dynamic provisioning handler for Azure MySQLServer

func (*AzureMySQLServerHandler) Find

Find Azure MysqlServer resource

func (*AzureMySQLServerHandler) Provision

Provision (create) a new Azure SQL Server resource

func (*AzureMySQLServerHandler) SetBindStatus

func (h *AzureMySQLServerHandler) SetBindStatus(name types.NamespacedName, c client.Client, bound bool) error

SetBindStatus updates resource state binding phase TODO: this SetBindStatus function could be refactored to 1 common implementation for all providers

type AzurePostgreSQLServerHandler

type AzurePostgreSQLServerHandler struct{}

AzurePostgreSQLServerHandler is a dynamic provisioning handler for Azure PostgreSQLServer

func (*AzurePostgreSQLServerHandler) Find

Find a PostgreSQL server.

func (*AzurePostgreSQLServerHandler) Provision

Provision (create) a new Azure SQL Server resource

func (*AzurePostgreSQLServerHandler) SetBindStatus

func (h *AzurePostgreSQLServerHandler) SetBindStatus(name types.NamespacedName, c client.Client, bound bool) error

SetBindStatus updates resource state binding phase TODO: this SetBindStatus function could be refactored to 1 common implementation for all providers

type CloudSQLServerHandler

type CloudSQLServerHandler struct{}

CloudSQLServerHandler is a dynamic provisioning handler for CloudSQL resource

func (*CloudSQLServerHandler) Find

Find CloudSQL resource

func (*CloudSQLServerHandler) Provision

Provision (create) a new CloudSQL resource

func (*CloudSQLServerHandler) SetBindStatus

func (h *CloudSQLServerHandler) SetBindStatus(name types.NamespacedName, c client.Client, bound bool) error

SetBindStatus updates resource state binding phase TODO: this SetBindStatus function could be refactored to 1 common implementation for all providers

type MySQLReconciler

type MySQLReconciler struct {
	*corecontroller.Reconciler
}

MySQLReconciler is the reconciler for MySQLInstance objects

func (*MySQLReconciler) Reconcile

func (r *MySQLReconciler) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a MySQLInstance object and makes changes based on the state read and what is in the Instance.Spec

type PostgreSQLReconciler

type PostgreSQLReconciler struct {
	*corecontroller.Reconciler
}

PostgreSQLReconciler is the reconciler for PostgreSQLInstance objects

func (*PostgreSQLReconciler) Reconcile

func (r *PostgreSQLReconciler) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a PostgreSQLInstance object and makes changes based on the state read and what is in the Instance.Spec

type RDSInstanceHandler

type RDSInstanceHandler struct{}

RDSInstanceHandler handles RDS Instance functionality

func (*RDSInstanceHandler) Find

Find RDSInstance

func (*RDSInstanceHandler) Provision

Provision create new RDSInstance

func (RDSInstanceHandler) SetBindStatus

func (h RDSInstanceHandler) SetBindStatus(name types.NamespacedName, c client.Client, bound bool) error

SetBindStatus updates resource state binding phase TODO: this SetBindStatus function could be refactored to 1 common implementation for all providers

Jump to

Keyboard shortcuts

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