adoption

package
v2.1.0-alpha.16 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoNothing

func DoNothing()

Types

type HashableTiDB

type HashableTiDB struct {
	Features []metav1alpha1.Feature
	Template *v1alpha1.TiDBTemplate
}

type Manager

type Manager interface {
	// Register records all standby tidbs and will delete records of normal and deleting tidbs.
	Register(dbs ...*v1alpha1.TiDB)
	// Unregister delete a tidb record directly.
	Unregister(ns, name string)
	// Adopt returns an adoptable tidb for a tidbgroup.
	// Index means the adopt times in one reconciliation.
	// Returned adoptable instance will be locked until UnlockFunc is called
	// or locked db is deleted or activated
	Adopt(dbg *v1alpha1.TiDBGroup, index int) (*v1alpha1.TiDB, UnlockFunc)
}

func New

func New(logger logr.Logger) Manager

type UnlockFunc

type UnlockFunc func()

Jump to

Keyboard shortcuts

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