database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 26 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.NonPortableClass, 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.NonPortableClass, 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 CloudsqlController

type CloudsqlController struct{}

CloudsqlController is responsible for adding the Cloudsql controller and its corresponding reconciler to the manager with any runtime configuration.

func (*CloudsqlController) SetupWithManager

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

SetupWithManager creates a Controller that reconciles CloudsqlInstance resources.

type MySQLInstanceClaimController

type MySQLInstanceClaimController struct{}

MySQLInstanceClaimController is responsible for adding the MySQLInstance claim controller and its corresponding reconciler to the manager with any runtime configuration.

func (*MySQLInstanceClaimController) SetupWithManager

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

SetupWithManager adds a controller that reconciles MySQLInstance instance claims.

type PostgreSQLInstanceClaimController

type PostgreSQLInstanceClaimController struct{}

PostgreSQLInstanceClaimController is responsible for adding the PostgreSQLInstance claim controller and its corresponding reconciler to the manager with any runtime configuration.

func (*PostgreSQLInstanceClaimController) SetupWithManager

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

SetupWithManager adds a controller that reconciles PostgreSQLInstance instance claims.

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler reconciles cloudsql instance objects

func (*Reconciler) Reconcile

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

Reconcile reads that state of the cloudsql instance object and makes changes based on the state read and what is in the instance Spec

Jump to

Keyboard shortcuts

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