# Packages
No description provided by the author
# Functions
AnnProm adds annotations for prometheus scraping metrics.
DefaultPushGatewayRequest for the TiKV sidecar.
DeferClose captures the error returned from closing (if an error occurs).
GetOwnerRef returns TidbCluster's OwnerReference.
GetPushgatewayImage returns TidbCluster's pushgateway image.
GetServiceType returns member's service type.
IsRequeueError returns whether err is a RequeueError.
MonitorMemberName returns monitor member name.
NewDefaultPDControl returns a defaultPDControl instance.
NewDefaultTiDBControl returns a defaultTiDBControl instance.
No description provided by the author
No description provided by the author
NewFakePodControl returns a FakePodControl.
NewFakePVCControl returns a FakePVCControl.
NewFakePVControl returns a FakePVControl.
NewFakeServiceControl returns a FakeServiceControl.
NewFakeStatefulSetControl returns a FakeStatefulSetControl.
NewFakeTidbClusterControl returns a FakeTidbClusterControl.
NewFakeTiDBControl returns a FakeTiDBControl instance.
NewPDClient returns a new PDClient.
NewRealPodControl creates a new PodControlInterface.
NewRealPVCControl creates a new PVCControlInterface.
NewRealPVControl creates a new PVControlInterface.
NewRealServiceControl creates a new ServiceControlInterface.
NewRealStatefuSetControl returns a StatefulSetControlInterface.
NewRealTidbClusterControl creates a new TidbClusterControlInterface.
PDMemberName returns pd member name.
PDPeerMemberName returns pd peer service name.
PriTiDBMemberName returns privileged tidb member name.
RequeueErrorf returns a RequeueError.
TiDBMemberName returns tidb member name.
TiDBPeerMemberName returns tidb peer service name.
TiKVCapacity returns string resource requirement, tikv uses GB, TB as unit suffix, but it actually means GiB, TiB.
TiKVMemberName returns tikv member name.
TiKVPeerMemberName returns tikv peer service name.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NotDDLOwnerError is the error message which was returned when the tidb node is not a ddl owner.
No description provided by the author
No description provided by the author
# Variables
ClusterScoped controls whether operator should manage kubernetes cluster wide TiDB clusters.
DefaultStorageClassName is the default storageClassName.
ExternalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
FakePodControl is a fake PodControlInterface.
FakePVCControl is a fake PVCControlInterface.
FakePVControl is a fake PVControlInterface.
FakeServiceControl is a fake ServiceControlInterface.
FakeStatefulSetControl is a fake StatefulSetControlInterface.
FakeTidbClusterControl is a fake TidbClusterControlInterface.
FakeTiDBControl is a fake implementation of TiDBControlInterface.
HealthInfo define PD's healthy info.
MemberHealth define a pd member's healthy info.
MembersInfo is PD members info returned from PD RESTful interfacetype Members map[string][]*pdpb.Member.
MetaStore is TiKV store status defined in protobuf.
No description provided by the author
RequeueError is used to requeue the item, this error type should't be considered as a real error.
StoreInfo is a single store info returned from PD RESTful interface.
StoresInfo is stores info returned from PD RESTful interface.
StoreStatus is TiKV store status returned from PD RESTful interface.
# Interfaces
PDClient provides pd server's api.
PDControlInterface is an interface that knows how to manage and get tidb cluster's PD client.
PodControlInterface manages Pods used in TidbCluster.
PVCControlInterface manages PVCs used in TidbCluster.
PVControlInterface manages PVs used in TidbCluster.
ServiceControlInterface manages Services used in TidbCluster.
StatefulSetControlInterface defines the interface that uses to create, update, and delete StatefulSets,.
TidbClusterControlInterface manages TidbClusters.
TiDBControlInterface is the interface that knows how to manage tidb peers.