Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
}
type UnlockFunc ¶
type UnlockFunc func()
Click to show internal directories.
Click to hide internal directories.