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
Click to show internal directories.
Click to hide internal directories.