database

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureMyCloudSQLInstance

func ConfigureMyCloudSQLInstance(_ context.Context, cm resource.Claim, cs resource.Class, mg resource.Managed) error

ConfigureMyCloudSQLInstance configures the supplied instance (presumed to be a CloudSQLInstance) using the supplied instance claim (presumed to be a MySQLInstance) and instance class.

func ConfigurePostgreSQLCloudSQLInstance

func ConfigurePostgreSQLCloudSQLInstance(_ context.Context, cm resource.Claim, cs resource.Class, mg resource.Managed) error

ConfigurePostgreSQLCloudSQLInstance configures the supplied instance (presumed to be a CloudSQLInstance) using the supplied instance claim (presumed to be a PostgreSQLInstance) and instance class.

Types

type CloudSQLInstanceController

type CloudSQLInstanceController struct{}

CloudSQLInstanceController is the controller for CloudSQL CRD.

func (*CloudSQLInstanceController) SetupWithManager

func (c *CloudSQLInstanceController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager creates a new 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.

type MySQLInstanceClaimController

type MySQLInstanceClaimController struct{}

A MySQLInstanceClaimController reconciles MySQLInstance claims with CloudSQLInstances, dynamically provisioning them if needed.

func (*MySQLInstanceClaimController) SetupWithManager

func (c *MySQLInstanceClaimController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager adds a controller that reconciles MySQLInstance instance claims.

type MySQLInstanceClaimDefaultingController

type MySQLInstanceClaimDefaultingController struct{}

A MySQLInstanceClaimDefaultingController reconciles MySQLInstance claims that omit their resource ref, class ref, and class selector by choosing a default CloudSQLInstanceClass if one exists.

func (*MySQLInstanceClaimDefaultingController) SetupWithManager

func (c *MySQLInstanceClaimDefaultingController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the MySQLInstanceClaimDefaultingController using the supplied manager.

type MySQLInstanceClaimSchedulingController

type MySQLInstanceClaimSchedulingController struct{}

A MySQLInstanceClaimSchedulingController reconciles MySQLInstance claims that include a class selector but omit their class and resource references by picking a random matching CloudSQLInstanceClass, if any.

func (*MySQLInstanceClaimSchedulingController) SetupWithManager

func (c *MySQLInstanceClaimSchedulingController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the MySQLInstanceClaimSchedulingController using the supplied manager.

type PostgreSQLInstanceClaimController

type PostgreSQLInstanceClaimController struct{}

A PostgreSQLInstanceClaimController reconciles PostgreSQLInstance claims with CloudSQLInstances, dynamically provisioning them if needed.

func (*PostgreSQLInstanceClaimController) SetupWithManager

func (c *PostgreSQLInstanceClaimController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager adds a controller that reconciles PostgreSQLInstance instance claims.

type PostgreSQLInstanceClaimDefaultingController

type PostgreSQLInstanceClaimDefaultingController struct{}

A PostgreSQLInstanceClaimDefaultingController reconciles PostgreSQLInstance claims that omit their resource ref, class ref, and class selector by choosing a default CloudSQLInstanceClass if one exists.

func (*PostgreSQLInstanceClaimDefaultingController) SetupWithManager

SetupWithManager sets up the PostgreSQLInstanceClaimDefaultingController using the supplied manager.

type PostgreSQLInstanceClaimSchedulingController

type PostgreSQLInstanceClaimSchedulingController struct{}

A PostgreSQLInstanceClaimSchedulingController reconciles PostgreSQLInstance claims that include a class selector but omit their class and resource references by picking a random matching CloudSQLInstanceClass, if any.

func (*PostgreSQLInstanceClaimSchedulingController) SetupWithManager

SetupWithManager sets up the PostgreSQLInstanceClaimSchedulingController using the supplied manager.

Jump to

Keyboard shortcuts

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