serverlessdb

package
v0.0.0-...-9e299b5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlInterface

type ControlInterface interface {
	// UpdateTidbCluster implements the control logic for StatefulSet creation, update, and deletion
	UpdateServerlessDB(db *v1alpha1.ServerlessDB) error
}

ControlInterface implements the control logic for updating TidbClusters and their children StatefulSets. It is implemented as an interface to allow for extensions that provide different semantics. Currently, there is only one implementation.

func NewDefaultServerlessDBControl

func NewDefaultServerlessDBControl(
	dbControl controller.ServerlessDBControlInterface,
	tidbClusterMemberManager manager.Manager,
	proxyMemberManager manager.Manager,
	sldbPhaseMemberManager manager.Manager,
	sldbFinalizerMemberManager manager.Manager,
	sldbFreezeMemberManager manager.Manager,
	recorder record.EventRecorder,
) ControlInterface

NewDefaultServerlessControl returns a new instance of the default implementation TidbClusterControlInterface that implements the documented semantics for TidbClusters.

type Controller

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

Controller controls ServerlessDB.

func NewController

func NewController(deps *controller.Dependencies) *Controller

NewController creates a ServerlessDB controller.

func (*Controller) Run

func (c *Controller) Run(workers int, stopCh <-chan struct{})

Run runs the serverlessdb controller.

type DiskUsageUpdater

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

func (*DiskUsageUpdater) Run

func (u *DiskUsageUpdater) Run()

type FakeServerlessDBControlInterface

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

func NewFakeServerlessDBControlInterface

func NewFakeServerlessDBControlInterface() *FakeServerlessDBControlInterface

func (*FakeServerlessDBControlInterface) UpdateServerlessDB

func (c *FakeServerlessDBControlInterface) UpdateServerlessDB(_ *v1alpha1.ServerlessDB) error

type Updater

type Updater interface {
	Run()
}

Jump to

Keyboard shortcuts

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