runtime

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package runtime is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Component

func Component[T ObjectSet, O ObjectT[T]]() string

func GetOfflineCondition

func GetOfflineCondition(s Instance) *metav1.Condition

func NamePrefixAndSuffix

func NamePrefixAndSuffix(name string) (prefix, suffix string)

func RemoveOfflineCondition

func RemoveOfflineCondition(s Instance) bool

func SetOfflineCondition

func SetOfflineCondition(s Instance, condition *metav1.Condition)

func ToBackup

func ToBackup(b *Backup) *brv1alpha1.Backup

func ToPD

func ToPD(in *PD) *v1alpha1.PD

func ToPDGroup

func ToPDGroup(g *PDGroup) *v1alpha1.PDGroup

func ToPDGroupSlice

func ToPDGroupSlice(gs []*PDGroup) []*v1alpha1.PDGroup

func ToPDSlice

func ToPDSlice(ins []*PD) []*v1alpha1.PD

func ToRestore

func ToRestore(r *Restore) *brv1alpha1.Restore

func ToScheduler

func ToScheduler(in *Scheduler) *v1alpha1.Scheduler

func ToSchedulerGroup

func ToSchedulerGroup(g *SchedulerGroup) *v1alpha1.SchedulerGroup

func ToSchedulerGroupSlice

func ToSchedulerGroupSlice(gs []*SchedulerGroup) []*v1alpha1.SchedulerGroup

func ToSchedulerSlice

func ToSchedulerSlice(ins []*Scheduler) []*v1alpha1.Scheduler

func ToScheduling

func ToScheduling(in *Scheduling) *v1alpha1.Scheduling

func ToSchedulingGroup

func ToSchedulingGroup(g *SchedulingGroup) *v1alpha1.SchedulingGroup

func ToSchedulingGroupSlice

func ToSchedulingGroupSlice(gs []*SchedulingGroup) []*v1alpha1.SchedulingGroup

func ToSchedulingSlice

func ToSchedulingSlice(ins []*Scheduling) []*v1alpha1.Scheduling

func ToTSO

func ToTSO(in *TSO) *v1alpha1.TSO

func ToTSOGroup

func ToTSOGroup(g *TSOGroup) *v1alpha1.TSOGroup

func ToTSOGroupSlice

func ToTSOGroupSlice(gs []*TSOGroup) []*v1alpha1.TSOGroup

func ToTSOSlice

func ToTSOSlice(ins []*TSO) []*v1alpha1.TSO

func ToTiCDC

func ToTiCDC(in *TiCDC) *v1alpha1.TiCDC

func ToTiCDCGroup

func ToTiCDCGroup(g *TiCDCGroup) *v1alpha1.TiCDCGroup

func ToTiCDCGroupSlice

func ToTiCDCGroupSlice(gs []*TiCDCGroup) []*v1alpha1.TiCDCGroup

func ToTiCDCSlice

func ToTiCDCSlice(ins []*TiCDC) []*v1alpha1.TiCDC

func ToTiDB

func ToTiDB(in *TiDB) *v1alpha1.TiDB

func ToTiDBGroup

func ToTiDBGroup(g *TiDBGroup) *v1alpha1.TiDBGroup

func ToTiDBGroupSlice

func ToTiDBGroupSlice(gs []*TiDBGroup) []*v1alpha1.TiDBGroup

func ToTiDBSlice

func ToTiDBSlice(ins []*TiDB) []*v1alpha1.TiDB

func ToTiFlash

func ToTiFlash(in *TiFlash) *v1alpha1.TiFlash

func ToTiFlashGroup

func ToTiFlashGroup(g *TiFlashGroup) *v1alpha1.TiFlashGroup

func ToTiFlashGroupSlice

func ToTiFlashGroupSlice(gs []*TiFlashGroup) []*v1alpha1.TiFlashGroup

func ToTiFlashSlice

func ToTiFlashSlice(ins []*TiFlash) []*v1alpha1.TiFlash

func ToTiKV

func ToTiKV(in *TiKV) *v1alpha1.TiKV

func ToTiKVGroup

func ToTiKVGroup(g *TiKVGroup) *v1alpha1.TiKVGroup

func ToTiKVGroupSlice

func ToTiKVGroupSlice(gs []*TiKVGroup) []*v1alpha1.TiKVGroup

func ToTiKVSlice

func ToTiKVSlice(ins []*TiKV) []*v1alpha1.TiKV

func ToTiProxy

func ToTiProxy(in *TiProxy) *v1alpha1.TiProxy

func ToTiProxyGroup

func ToTiProxyGroup(g *TiProxyGroup) *v1alpha1.TiProxyGroup

func ToTiProxyGroupSlice

func ToTiProxyGroupSlice(gs []*TiProxyGroup) []*v1alpha1.TiProxyGroup

func ToTiProxySlice

func ToTiProxySlice(ins []*TiProxy) []*v1alpha1.TiProxy

Types

type Backup

type Backup brv1alpha1.Backup

br

func FromBackup

func FromBackup(b *brv1alpha1.Backup) *Backup

func (*Backup) ClientCASecretName

func (b *Backup) ClientCASecretName() string

func (*Backup) ClientCertKeyPairSecretName

func (b *Backup) ClientCertKeyPairSecretName() string

func (*Backup) ClientInsecureSkipTLSVerify

func (b *Backup) ClientInsecureSkipTLSVerify() bool

func (*Backup) Cluster

func (b *Backup) Cluster() string

func (*Backup) ClusterCASecretName

func (b *Backup) ClusterCASecretName() string

func (*Backup) ClusterCertKeyPairSecretName

func (b *Backup) ClusterCertKeyPairSecretName() string

func (*Backup) Completed

func (b *Backup) Completed() bool

func (*Backup) Component

func (b *Backup) Component() string

func (*Backup) Conditions

func (b *Backup) Conditions() []metav1.Condition

func (*Backup) Failed

func (b *Backup) Failed() bool

func (*Backup) Features

func (b *Backup) Features() []metav1alpha1.Feature

func (*Backup) Invalid

func (b *Backup) Invalid() bool

func (*Backup) K8sJob

func (b *Backup) K8sJob() client.ObjectKey

func (*Backup) LastRetryRecord

func (b *Backup) LastRetryRecord() (brv1alpha1.BackoffRetryRecord, bool)

func (*Backup) NeedAddFinalizer

func (b *Backup) NeedAddFinalizer() bool

func (*Backup) NeedRemoveFinalizer

func (b *Backup) NeedRemoveFinalizer() bool

func (*Backup) NeedRetry

func (b *Backup) NeedRetry() bool

func (*Backup) Object

func (b *Backup) Object() client.Object

func (*Backup) ObservedGeneration

func (b *Backup) ObservedGeneration() int64

func (*Backup) PostRetry

func (b *Backup) PostRetry(now time.Time) error

func (*Backup) Retry

func (b *Backup) Retry(reason, originalReason string, now time.Time) (nextRunAt *time.Duration, _ error)

func (*Backup) SetCluster

func (b *Backup) SetCluster(cluster string)

func (*Backup) SetConditions

func (b *Backup) SetConditions(conds []metav1.Condition)

func (*Backup) SetImage

func (b *Backup) SetImage(string)

func (*Backup) SetObservedGeneration

func (b *Backup) SetObservedGeneration(int64)

func (*Backup) SetVersion

func (b *Backup) SetVersion(string)

func (*Backup) Version

func (b *Backup) Version() string

type Group

type Group interface {
	Object

	SetReplicas(replicas int32)
	Replicas() int32

	SetStatusVersion(version string)
	StatusVersion() string

	SetStatusReplicas(replicas, ready, update, current int32)
	StatusReplicas() (replicas, ready, update, current int32)

	SetStatusRevision(update, current string, collisionCount *int32)
	StatusRevision() (update, current string, collisionCount *int32)

	SetStatusSelector(l string)
	StatusSelector() string

	TemplateLabels() map[string]string
	TemplateAnnotations() map[string]string

	SetTemplateLabels(map[string]string)
	SetTemplateAnnotations(map[string]string)

	MinReadySeconds() int64

	SchedulePolicies() []v1alpha1.SchedulePolicy
}

type GroupT

type GroupT[T GroupSet] interface {
	Group

	*T
}

type GroupTuple

type GroupTuple[PT client.Object, PU Group] interface {
	Tuple[PT, PU]
}

type Instance

type Instance interface {
	Object

	GetTopology() v1alpha1.Topology
	SetTopology(topo v1alpha1.Topology)

	GetUpdateRevision() string
	// IsReady means the instance is ready to serve
	IsReady() bool
	// IsNotRunning means the pod of this instance is not running
	IsNotRunning() bool
	// IsAvailable means the instance is ready more than minReadySeconds
	IsAvailable(minReadySeconds int64, now time.Time) bool
	// IsUpToDate means all resources managed by the instance is up to date
	// NOTE: It does not mean the instance is updated to the newest revision
	// TODO: may be change a more meaningful name?
	IsUpToDate() bool
	IsOffline() bool

	CurrentRevision() string
	SetCurrentRevision(rev string)

	Volumes() []v1alpha1.Volume

	PodOverlay() *v1alpha1.PodOverlay
	PVCOverlay() []v1alpha1.NamedPersistentVolumeClaimOverlay

	Subdomain() string

	// IsStore indicates whether the instance is a store.
	// For TiKV and TiFlash, it returns true, otherwise it returns false.
	IsStore() bool
}

type InstanceSet

type InstanceSet interface {
	PD | TiDB | TiKV | TiFlash | TiCDC | TiProxy | TSO | Scheduling | Scheduler
}

type InstanceT

type InstanceT[T InstanceSet] interface {
	Instance

	*T
}

type InstanceTuple

type InstanceTuple[PT client.Object, PU Instance] interface {
	Tuple[PT, PU]
}

type Job

type Job interface {
	Object
	// Failed returns true if the job is Failed
	Failed() bool
	// Completed returns true if the job is Completed
	Completed() bool
	// Invalid returns true if the job is invalid
	Invalid() bool
	// NeedAddFinalizer returns true if the job needs a finalizer
	NeedAddFinalizer() bool
	// NeedRemoveFinalizer returns true if the job needs to remove the finalizer
	NeedRemoveFinalizer() bool

	// K8sJob returns the k8s job object key
	K8sJob() client.ObjectKey

	Object() client.Object
}

Job is the interface for a job. for example, backup, restore, etc.

type MockInstance

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

MockInstance is a mock of Instance interface.

func NewMockInstance

func NewMockInstance(ctrl *gomock.Controller) *MockInstance

NewMockInstance creates a new mock instance.

func (*MockInstance) ClientCASecretName

func (m *MockInstance) ClientCASecretName() string

ClientCASecretName mocks base method.

func (*MockInstance) ClientCertKeyPairSecretName

func (m *MockInstance) ClientCertKeyPairSecretName() string

ClientCertKeyPairSecretName mocks base method.

func (*MockInstance) ClientInsecureSkipTLSVerify

func (m *MockInstance) ClientInsecureSkipTLSVerify() bool

ClientInsecureSkipTLSVerify mocks base method.

func (*MockInstance) Cluster

func (m *MockInstance) Cluster() string

Cluster mocks base method.

func (*MockInstance) ClusterCASecretName

func (m *MockInstance) ClusterCASecretName() string

ClusterCASecretName mocks base method.

func (*MockInstance) ClusterCertKeyPairSecretName

func (m *MockInstance) ClusterCertKeyPairSecretName() string

ClusterCertKeyPairSecretName mocks base method.

func (*MockInstance) Component

func (m *MockInstance) Component() string

Component mocks base method.

func (*MockInstance) Conditions

func (m *MockInstance) Conditions() []v1.Condition

Conditions mocks base method.

func (*MockInstance) CurrentRevision

func (m *MockInstance) CurrentRevision() string

CurrentRevision mocks base method.

func (*MockInstance) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInstance) Features

func (m *MockInstance) Features() []v1alpha10.Feature

Features mocks base method.

func (*MockInstance) GetAnnotations

func (m *MockInstance) GetAnnotations() map[string]string

GetAnnotations mocks base method.

func (*MockInstance) GetCreationTimestamp

func (m *MockInstance) GetCreationTimestamp() v1.Time

GetCreationTimestamp mocks base method.

func (*MockInstance) GetDeletionGracePeriodSeconds

func (m *MockInstance) GetDeletionGracePeriodSeconds() *int64

GetDeletionGracePeriodSeconds mocks base method.

func (*MockInstance) GetDeletionTimestamp

func (m *MockInstance) GetDeletionTimestamp() *v1.Time

GetDeletionTimestamp mocks base method.

func (*MockInstance) GetFinalizers

func (m *MockInstance) GetFinalizers() []string

GetFinalizers mocks base method.

func (*MockInstance) GetGenerateName

func (m *MockInstance) GetGenerateName() string

GetGenerateName mocks base method.

func (*MockInstance) GetGeneration

func (m *MockInstance) GetGeneration() int64

GetGeneration mocks base method.

func (*MockInstance) GetLabels

func (m *MockInstance) GetLabels() map[string]string

GetLabels mocks base method.

func (*MockInstance) GetManagedFields

func (m *MockInstance) GetManagedFields() []v1.ManagedFieldsEntry

GetManagedFields mocks base method.

func (*MockInstance) GetName

func (m *MockInstance) GetName() string

GetName mocks base method.

func (*MockInstance) GetNamespace

func (m *MockInstance) GetNamespace() string

GetNamespace mocks base method.

func (*MockInstance) GetOwnerReferences

func (m *MockInstance) GetOwnerReferences() []v1.OwnerReference

GetOwnerReferences mocks base method.

func (*MockInstance) GetResourceVersion

func (m *MockInstance) GetResourceVersion() string

GetResourceVersion mocks base method.

func (m *MockInstance) GetSelfLink() string

GetSelfLink mocks base method.

func (*MockInstance) GetTopology

func (m *MockInstance) GetTopology() v1alpha1.Topology

GetTopology mocks base method.

func (*MockInstance) GetUID

func (m *MockInstance) GetUID() types.UID

GetUID mocks base method.

func (*MockInstance) GetUpdateRevision

func (m *MockInstance) GetUpdateRevision() string

GetUpdateRevision mocks base method.

func (*MockInstance) IsAvailable

func (m *MockInstance) IsAvailable(minReadySeconds int64, now time.Time) bool

IsAvailable mocks base method.

func (*MockInstance) IsNotRunning

func (m *MockInstance) IsNotRunning() bool

IsNotRunning mocks base method.

func (*MockInstance) IsOffline

func (m *MockInstance) IsOffline() bool

IsOffline mocks base method.

func (*MockInstance) IsReady

func (m *MockInstance) IsReady() bool

IsReady mocks base method.

func (*MockInstance) IsStore

func (m *MockInstance) IsStore() bool

IsStore mocks base method.

func (*MockInstance) IsUpToDate

func (m *MockInstance) IsUpToDate() bool

IsUpToDate mocks base method.

func (*MockInstance) ObservedGeneration

func (m *MockInstance) ObservedGeneration() int64

ObservedGeneration mocks base method.

func (*MockInstance) PVCOverlay

PVCOverlay mocks base method.

func (*MockInstance) PodOverlay

func (m *MockInstance) PodOverlay() *v1alpha1.PodOverlay

PodOverlay mocks base method.

func (*MockInstance) SetAnnotations

func (m *MockInstance) SetAnnotations(annotations map[string]string)

SetAnnotations mocks base method.

func (*MockInstance) SetCluster

func (m *MockInstance) SetCluster(cluster string)

SetCluster mocks base method.

func (*MockInstance) SetConditions

func (m *MockInstance) SetConditions(arg0 []v1.Condition)

SetConditions mocks base method.

func (*MockInstance) SetCreationTimestamp

func (m *MockInstance) SetCreationTimestamp(timestamp v1.Time)

SetCreationTimestamp mocks base method.

func (*MockInstance) SetCurrentRevision

func (m *MockInstance) SetCurrentRevision(rev string)

SetCurrentRevision mocks base method.

func (*MockInstance) SetDeletionGracePeriodSeconds

func (m *MockInstance) SetDeletionGracePeriodSeconds(arg0 *int64)

SetDeletionGracePeriodSeconds mocks base method.

func (*MockInstance) SetDeletionTimestamp

func (m *MockInstance) SetDeletionTimestamp(timestamp *v1.Time)

SetDeletionTimestamp mocks base method.

func (*MockInstance) SetFinalizers

func (m *MockInstance) SetFinalizers(finalizers []string)

SetFinalizers mocks base method.

func (*MockInstance) SetGenerateName

func (m *MockInstance) SetGenerateName(name string)

SetGenerateName mocks base method.

func (*MockInstance) SetGeneration

func (m *MockInstance) SetGeneration(generation int64)

SetGeneration mocks base method.

func (*MockInstance) SetImage

func (m *MockInstance) SetImage(image string)

SetImage mocks base method.

func (*MockInstance) SetLabels

func (m *MockInstance) SetLabels(labels map[string]string)

SetLabels mocks base method.

func (*MockInstance) SetManagedFields

func (m *MockInstance) SetManagedFields(managedFields []v1.ManagedFieldsEntry)

SetManagedFields mocks base method.

func (*MockInstance) SetName

func (m *MockInstance) SetName(name string)

SetName mocks base method.

func (*MockInstance) SetNamespace

func (m *MockInstance) SetNamespace(namespace string)

SetNamespace mocks base method.

func (*MockInstance) SetObservedGeneration

func (m *MockInstance) SetObservedGeneration(arg0 int64)

SetObservedGeneration mocks base method.

func (*MockInstance) SetOwnerReferences

func (m *MockInstance) SetOwnerReferences(arg0 []v1.OwnerReference)

SetOwnerReferences mocks base method.

func (*MockInstance) SetResourceVersion

func (m *MockInstance) SetResourceVersion(version string)

SetResourceVersion mocks base method.

func (m *MockInstance) SetSelfLink(selfLink string)

SetSelfLink mocks base method.

func (*MockInstance) SetTopology

func (m *MockInstance) SetTopology(topo v1alpha1.Topology)

SetTopology mocks base method.

func (*MockInstance) SetUID

func (m *MockInstance) SetUID(uid types.UID)

SetUID mocks base method.

func (*MockInstance) SetVersion

func (m *MockInstance) SetVersion(versions string)

SetVersion mocks base method.

func (*MockInstance) Subdomain

func (m *MockInstance) Subdomain() string

Subdomain mocks base method.

func (*MockInstance) Version

func (m *MockInstance) Version() string

Version mocks base method.

func (*MockInstance) Volumes

func (m *MockInstance) Volumes() []v1alpha1.Volume

Volumes mocks base method.

type MockInstanceMockRecorder

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

MockInstanceMockRecorder is the mock recorder for MockInstance.

func (*MockInstanceMockRecorder) ClientCASecretName

func (mr *MockInstanceMockRecorder) ClientCASecretName() *gomock.Call

ClientCASecretName indicates an expected call of ClientCASecretName.

func (*MockInstanceMockRecorder) ClientCertKeyPairSecretName

func (mr *MockInstanceMockRecorder) ClientCertKeyPairSecretName() *gomock.Call

ClientCertKeyPairSecretName indicates an expected call of ClientCertKeyPairSecretName.

func (*MockInstanceMockRecorder) ClientInsecureSkipTLSVerify

func (mr *MockInstanceMockRecorder) ClientInsecureSkipTLSVerify() *gomock.Call

ClientInsecureSkipTLSVerify indicates an expected call of ClientInsecureSkipTLSVerify.

func (*MockInstanceMockRecorder) Cluster

func (mr *MockInstanceMockRecorder) Cluster() *gomock.Call

Cluster indicates an expected call of Cluster.

func (*MockInstanceMockRecorder) ClusterCASecretName

func (mr *MockInstanceMockRecorder) ClusterCASecretName() *gomock.Call

ClusterCASecretName indicates an expected call of ClusterCASecretName.

func (*MockInstanceMockRecorder) ClusterCertKeyPairSecretName

func (mr *MockInstanceMockRecorder) ClusterCertKeyPairSecretName() *gomock.Call

ClusterCertKeyPairSecretName indicates an expected call of ClusterCertKeyPairSecretName.

func (*MockInstanceMockRecorder) Component

func (mr *MockInstanceMockRecorder) Component() *gomock.Call

Component indicates an expected call of Component.

func (*MockInstanceMockRecorder) Conditions

func (mr *MockInstanceMockRecorder) Conditions() *gomock.Call

Conditions indicates an expected call of Conditions.

func (*MockInstanceMockRecorder) CurrentRevision

func (mr *MockInstanceMockRecorder) CurrentRevision() *gomock.Call

CurrentRevision indicates an expected call of CurrentRevision.

func (*MockInstanceMockRecorder) Features

func (mr *MockInstanceMockRecorder) Features() *gomock.Call

Features indicates an expected call of Features.

func (*MockInstanceMockRecorder) GetAnnotations

func (mr *MockInstanceMockRecorder) GetAnnotations() *gomock.Call

GetAnnotations indicates an expected call of GetAnnotations.

func (*MockInstanceMockRecorder) GetCreationTimestamp

func (mr *MockInstanceMockRecorder) GetCreationTimestamp() *gomock.Call

GetCreationTimestamp indicates an expected call of GetCreationTimestamp.

func (*MockInstanceMockRecorder) GetDeletionGracePeriodSeconds

func (mr *MockInstanceMockRecorder) GetDeletionGracePeriodSeconds() *gomock.Call

GetDeletionGracePeriodSeconds indicates an expected call of GetDeletionGracePeriodSeconds.

func (*MockInstanceMockRecorder) GetDeletionTimestamp

func (mr *MockInstanceMockRecorder) GetDeletionTimestamp() *gomock.Call

GetDeletionTimestamp indicates an expected call of GetDeletionTimestamp.

func (*MockInstanceMockRecorder) GetFinalizers

func (mr *MockInstanceMockRecorder) GetFinalizers() *gomock.Call

GetFinalizers indicates an expected call of GetFinalizers.

func (*MockInstanceMockRecorder) GetGenerateName

func (mr *MockInstanceMockRecorder) GetGenerateName() *gomock.Call

GetGenerateName indicates an expected call of GetGenerateName.

func (*MockInstanceMockRecorder) GetGeneration

func (mr *MockInstanceMockRecorder) GetGeneration() *gomock.Call

GetGeneration indicates an expected call of GetGeneration.

func (*MockInstanceMockRecorder) GetLabels

func (mr *MockInstanceMockRecorder) GetLabels() *gomock.Call

GetLabels indicates an expected call of GetLabels.

func (*MockInstanceMockRecorder) GetManagedFields

func (mr *MockInstanceMockRecorder) GetManagedFields() *gomock.Call

GetManagedFields indicates an expected call of GetManagedFields.

func (*MockInstanceMockRecorder) GetName

func (mr *MockInstanceMockRecorder) GetName() *gomock.Call

GetName indicates an expected call of GetName.

func (*MockInstanceMockRecorder) GetNamespace

func (mr *MockInstanceMockRecorder) GetNamespace() *gomock.Call

GetNamespace indicates an expected call of GetNamespace.

func (*MockInstanceMockRecorder) GetOwnerReferences

func (mr *MockInstanceMockRecorder) GetOwnerReferences() *gomock.Call

GetOwnerReferences indicates an expected call of GetOwnerReferences.

func (*MockInstanceMockRecorder) GetResourceVersion

func (mr *MockInstanceMockRecorder) GetResourceVersion() *gomock.Call

GetResourceVersion indicates an expected call of GetResourceVersion.

func (mr *MockInstanceMockRecorder) GetSelfLink() *gomock.Call

GetSelfLink indicates an expected call of GetSelfLink.

func (*MockInstanceMockRecorder) GetTopology

func (mr *MockInstanceMockRecorder) GetTopology() *gomock.Call

GetTopology indicates an expected call of GetTopology.

func (*MockInstanceMockRecorder) GetUID

func (mr *MockInstanceMockRecorder) GetUID() *gomock.Call

GetUID indicates an expected call of GetUID.

func (*MockInstanceMockRecorder) GetUpdateRevision

func (mr *MockInstanceMockRecorder) GetUpdateRevision() *gomock.Call

GetUpdateRevision indicates an expected call of GetUpdateRevision.

func (*MockInstanceMockRecorder) IsAvailable

func (mr *MockInstanceMockRecorder) IsAvailable(minReadySeconds, now any) *gomock.Call

IsAvailable indicates an expected call of IsAvailable.

func (*MockInstanceMockRecorder) IsNotRunning

func (mr *MockInstanceMockRecorder) IsNotRunning() *gomock.Call

IsNotRunning indicates an expected call of IsNotRunning.

func (*MockInstanceMockRecorder) IsOffline

func (mr *MockInstanceMockRecorder) IsOffline() *gomock.Call

IsOffline indicates an expected call of IsOffline.

func (*MockInstanceMockRecorder) IsReady

func (mr *MockInstanceMockRecorder) IsReady() *gomock.Call

IsReady indicates an expected call of IsReady.

func (*MockInstanceMockRecorder) IsStore

func (mr *MockInstanceMockRecorder) IsStore() *gomock.Call

IsStore indicates an expected call of IsStore.

func (*MockInstanceMockRecorder) IsUpToDate

func (mr *MockInstanceMockRecorder) IsUpToDate() *gomock.Call

IsUpToDate indicates an expected call of IsUpToDate.

func (*MockInstanceMockRecorder) ObservedGeneration

func (mr *MockInstanceMockRecorder) ObservedGeneration() *gomock.Call

ObservedGeneration indicates an expected call of ObservedGeneration.

func (*MockInstanceMockRecorder) PVCOverlay

func (mr *MockInstanceMockRecorder) PVCOverlay() *gomock.Call

PVCOverlay indicates an expected call of PVCOverlay.

func (*MockInstanceMockRecorder) PodOverlay

func (mr *MockInstanceMockRecorder) PodOverlay() *gomock.Call

PodOverlay indicates an expected call of PodOverlay.

func (*MockInstanceMockRecorder) SetAnnotations

func (mr *MockInstanceMockRecorder) SetAnnotations(annotations any) *gomock.Call

SetAnnotations indicates an expected call of SetAnnotations.

func (*MockInstanceMockRecorder) SetCluster

func (mr *MockInstanceMockRecorder) SetCluster(cluster any) *gomock.Call

SetCluster indicates an expected call of SetCluster.

func (*MockInstanceMockRecorder) SetConditions

func (mr *MockInstanceMockRecorder) SetConditions(arg0 any) *gomock.Call

SetConditions indicates an expected call of SetConditions.

func (*MockInstanceMockRecorder) SetCreationTimestamp

func (mr *MockInstanceMockRecorder) SetCreationTimestamp(timestamp any) *gomock.Call

SetCreationTimestamp indicates an expected call of SetCreationTimestamp.

func (*MockInstanceMockRecorder) SetCurrentRevision

func (mr *MockInstanceMockRecorder) SetCurrentRevision(rev any) *gomock.Call

SetCurrentRevision indicates an expected call of SetCurrentRevision.

func (*MockInstanceMockRecorder) SetDeletionGracePeriodSeconds

func (mr *MockInstanceMockRecorder) SetDeletionGracePeriodSeconds(arg0 any) *gomock.Call

SetDeletionGracePeriodSeconds indicates an expected call of SetDeletionGracePeriodSeconds.

func (*MockInstanceMockRecorder) SetDeletionTimestamp

func (mr *MockInstanceMockRecorder) SetDeletionTimestamp(timestamp any) *gomock.Call

SetDeletionTimestamp indicates an expected call of SetDeletionTimestamp.

func (*MockInstanceMockRecorder) SetFinalizers

func (mr *MockInstanceMockRecorder) SetFinalizers(finalizers any) *gomock.Call

SetFinalizers indicates an expected call of SetFinalizers.

func (*MockInstanceMockRecorder) SetGenerateName

func (mr *MockInstanceMockRecorder) SetGenerateName(name any) *gomock.Call

SetGenerateName indicates an expected call of SetGenerateName.

func (*MockInstanceMockRecorder) SetGeneration

func (mr *MockInstanceMockRecorder) SetGeneration(generation any) *gomock.Call

SetGeneration indicates an expected call of SetGeneration.

func (*MockInstanceMockRecorder) SetImage

func (mr *MockInstanceMockRecorder) SetImage(image any) *gomock.Call

SetImage indicates an expected call of SetImage.

func (*MockInstanceMockRecorder) SetLabels

func (mr *MockInstanceMockRecorder) SetLabels(labels any) *gomock.Call

SetLabels indicates an expected call of SetLabels.

func (*MockInstanceMockRecorder) SetManagedFields

func (mr *MockInstanceMockRecorder) SetManagedFields(managedFields any) *gomock.Call

SetManagedFields indicates an expected call of SetManagedFields.

func (*MockInstanceMockRecorder) SetName

func (mr *MockInstanceMockRecorder) SetName(name any) *gomock.Call

SetName indicates an expected call of SetName.

func (*MockInstanceMockRecorder) SetNamespace

func (mr *MockInstanceMockRecorder) SetNamespace(namespace any) *gomock.Call

SetNamespace indicates an expected call of SetNamespace.

func (*MockInstanceMockRecorder) SetObservedGeneration

func (mr *MockInstanceMockRecorder) SetObservedGeneration(arg0 any) *gomock.Call

SetObservedGeneration indicates an expected call of SetObservedGeneration.

func (*MockInstanceMockRecorder) SetOwnerReferences

func (mr *MockInstanceMockRecorder) SetOwnerReferences(arg0 any) *gomock.Call

SetOwnerReferences indicates an expected call of SetOwnerReferences.

func (*MockInstanceMockRecorder) SetResourceVersion

func (mr *MockInstanceMockRecorder) SetResourceVersion(version any) *gomock.Call

SetResourceVersion indicates an expected call of SetResourceVersion.

func (mr *MockInstanceMockRecorder) SetSelfLink(selfLink any) *gomock.Call

SetSelfLink indicates an expected call of SetSelfLink.

func (*MockInstanceMockRecorder) SetTopology

func (mr *MockInstanceMockRecorder) SetTopology(topo any) *gomock.Call

SetTopology indicates an expected call of SetTopology.

func (*MockInstanceMockRecorder) SetUID

func (mr *MockInstanceMockRecorder) SetUID(uid any) *gomock.Call

SetUID indicates an expected call of SetUID.

func (*MockInstanceMockRecorder) SetVersion

func (mr *MockInstanceMockRecorder) SetVersion(versions any) *gomock.Call

SetVersion indicates an expected call of SetVersion.

func (*MockInstanceMockRecorder) Subdomain

func (mr *MockInstanceMockRecorder) Subdomain() *gomock.Call

Subdomain indicates an expected call of Subdomain.

func (*MockInstanceMockRecorder) Version

func (mr *MockInstanceMockRecorder) Version() *gomock.Call

Version indicates an expected call of Version.

func (*MockInstanceMockRecorder) Volumes

func (mr *MockInstanceMockRecorder) Volumes() *gomock.Call

Volumes indicates an expected call of Volumes.

type Object

type Object interface {
	metav1.Object

	Component() string

	SetCluster(cluster string)
	Cluster() string

	SetConditions([]metav1.Condition)
	Conditions() []metav1.Condition

	SetObservedGeneration(int64)
	ObservedGeneration() int64

	SetVersion(versions string)
	Version() string

	SetImage(image string)

	Features() []metav1alpha1.Feature

	// tls secret name for the tidb operator to visit internal components
	ClientCertKeyPairSecretName() string
	ClientCASecretName() string
	ClientInsecureSkipTLSVerify() bool

	// tls secret name for internal communication between components
	ClusterCertKeyPairSecretName() string
	ClusterCASecretName() string
}

type ObjectSet

type ObjectSet interface {
	GroupSet | InstanceSet
}

type ObjectT

type ObjectT[T ObjectSet] interface {
	Object

	*T
}

type ObjectTuple

type ObjectTuple[PT client.Object, PU Object] interface {
	Tuple[PT, PU]
}

type PD

type PD v1alpha1.PD

func FromPD

func FromPD(in *v1alpha1.PD) *PD

func FromPDSlice

func FromPDSlice(ins []*v1alpha1.PD) []*PD

func (*PD) ClientCASecretName

func (in *PD) ClientCASecretName() string

func (*PD) ClientCertKeyPairSecretName

func (in *PD) ClientCertKeyPairSecretName() string

func (*PD) ClientInsecureSkipTLSVerify

func (in *PD) ClientInsecureSkipTLSVerify() bool

func (*PD) Cluster

func (in *PD) Cluster() string

func (*PD) ClusterCASecretName

func (in *PD) ClusterCASecretName() string

func (*PD) ClusterCertKeyPairSecretName

func (in *PD) ClusterCertKeyPairSecretName() string

func (*PD) Component

func (*PD) Component() string

func (*PD) Conditions

func (in *PD) Conditions() []metav1.Condition

func (*PD) CurrentRevision

func (in *PD) CurrentRevision() string

func (*PD) DeepCopyObject

func (in *PD) DeepCopyObject() runtime.Object

func (*PD) Features

func (in *PD) Features() []metav1alpha1.Feature

func (*PD) GetTopology

func (in *PD) GetTopology() v1alpha1.Topology

func (*PD) GetUpdateRevision

func (in *PD) GetUpdateRevision() string

func (*PD) IsAvailable

func (in *PD) IsAvailable(minReadySeconds int64, now time.Time) bool

func (*PD) IsNotRunning

func (in *PD) IsNotRunning() bool

func (*PD) IsOffline

func (in *PD) IsOffline() bool

func (*PD) IsReady

func (in *PD) IsReady() bool

func (*PD) IsStore

func (in *PD) IsStore() bool

func (*PD) IsUpToDate

func (in *PD) IsUpToDate() bool

func (*PD) ObservedGeneration

func (in *PD) ObservedGeneration() int64

func (*PD) PVCOverlay

func (in *PD) PVCOverlay() []v1alpha1.NamedPersistentVolumeClaimOverlay

func (*PD) PodOverlay

func (in *PD) PodOverlay() *v1alpha1.PodOverlay

func (*PD) SetCluster

func (in *PD) SetCluster(cluster string)

func (*PD) SetConditions

func (in *PD) SetConditions(conds []metav1.Condition)

func (*PD) SetCurrentRevision

func (in *PD) SetCurrentRevision(rev string)

func (*PD) SetImage

func (in *PD) SetImage(image string)

func (*PD) SetObservedGeneration

func (in *PD) SetObservedGeneration(gen int64)

func (*PD) SetTopology

func (in *PD) SetTopology(t v1alpha1.Topology)

func (*PD) SetVersion

func (in *PD) SetVersion(version string)

func (*PD) Subdomain

func (in *PD) Subdomain() string

func (*PD) To

func (in *PD) To() *v1alpha1.PD

func (*PD) Version

func (in *PD) Version() string

func (*PD) Volumes

func (in *PD) Volumes() []v1alpha1.Volume

type PDGroup

type PDGroup v1alpha1.PDGroup

func FromPDGroup

func FromPDGroup(g *v1alpha1.PDGroup) *PDGroup

func FromPDGroupSlice

func FromPDGroupSlice(gs []*v1alpha1.PDGroup) []*PDGroup

func (*PDGroup) ClientCASecretName

func (g *PDGroup) ClientCASecretName() string

func (*PDGroup) ClientCertKeyPairSecretName

func (g *PDGroup) ClientCertKeyPairSecretName() string

func (*PDGroup) ClientInsecureSkipTLSVerify

func (g *PDGroup) ClientInsecureSkipTLSVerify() bool

func (*PDGroup) Cluster

func (g *PDGroup) Cluster() string

func (*PDGroup) ClusterCASecretName

func (g *PDGroup) ClusterCASecretName() string

func (*PDGroup) ClusterCertKeyPairSecretName

func (g *PDGroup) ClusterCertKeyPairSecretName() string

func (*PDGroup) Component

func (*PDGroup) Component() string

func (*PDGroup) Conditions

func (g *PDGroup) Conditions() []metav1.Condition

func (*PDGroup) DeepCopyObject

func (g *PDGroup) DeepCopyObject() runtime.Object

func (*PDGroup) Features

func (g *PDGroup) Features() []metav1alpha1.Feature

func (*PDGroup) MinReadySeconds

func (g *PDGroup) MinReadySeconds() int64

func (*PDGroup) ObservedGeneration

func (g *PDGroup) ObservedGeneration() int64

func (*PDGroup) Replicas

func (g *PDGroup) Replicas() int32

func (*PDGroup) SchedulePolicies

func (g *PDGroup) SchedulePolicies() []v1alpha1.SchedulePolicy

func (*PDGroup) SetCluster

func (g *PDGroup) SetCluster(cluster string)

func (*PDGroup) SetConditions

func (g *PDGroup) SetConditions(conds []metav1.Condition)

func (*PDGroup) SetImage

func (g *PDGroup) SetImage(image string)

func (*PDGroup) SetObservedGeneration

func (g *PDGroup) SetObservedGeneration(gen int64)

func (*PDGroup) SetReplicas

func (g *PDGroup) SetReplicas(replicas int32)

func (*PDGroup) SetStatusReplicas

func (g *PDGroup) SetStatusReplicas(replicas, ready, update, current int32)

func (*PDGroup) SetStatusRevision

func (g *PDGroup) SetStatusRevision(update, current string, collisionCount *int32)

func (*PDGroup) SetStatusSelector

func (g *PDGroup) SetStatusSelector(l string)

func (*PDGroup) SetStatusVersion

func (g *PDGroup) SetStatusVersion(version string)

func (*PDGroup) SetTemplateAnnotations

func (g *PDGroup) SetTemplateAnnotations(anno map[string]string)

func (*PDGroup) SetTemplateLabels

func (g *PDGroup) SetTemplateLabels(ls map[string]string)

func (*PDGroup) SetVersion

func (g *PDGroup) SetVersion(version string)

func (*PDGroup) StatusReplicas

func (g *PDGroup) StatusReplicas() (replicas, ready, update, current int32)

func (*PDGroup) StatusRevision

func (g *PDGroup) StatusRevision() (update, current string, collisionCount *int32)

func (*PDGroup) StatusSelector

func (g *PDGroup) StatusSelector() string

func (*PDGroup) StatusVersion

func (g *PDGroup) StatusVersion() string

func (*PDGroup) TemplateAnnotations

func (g *PDGroup) TemplateAnnotations() map[string]string

func (*PDGroup) TemplateLabels

func (g *PDGroup) TemplateLabels() map[string]string

func (*PDGroup) To

func (g *PDGroup) To() *v1alpha1.PDGroup

func (*PDGroup) Version

func (g *PDGroup) Version() string

type PDGroupTuple

type PDGroupTuple struct{}

func (PDGroupTuple) From

func (PDGroupTuple) FromSlice

func (PDGroupTuple) FromSlice(t []*v1alpha1.PDGroup) []*PDGroup

func (PDGroupTuple) To

func (PDGroupTuple) ToSlice

func (PDGroupTuple) ToSlice(t []*PDGroup) []*v1alpha1.PDGroup

type PDTuple

type PDTuple struct{}

func (PDTuple) From

func (PDTuple) From(t *v1alpha1.PD) *PD

func (PDTuple) FromSlice

func (PDTuple) FromSlice(t []*v1alpha1.PD) []*PD

func (PDTuple) To

func (PDTuple) To(t *PD) *v1alpha1.PD

func (PDTuple) ToSlice

func (PDTuple) ToSlice(t []*PD) []*v1alpha1.PD

type PostRetryData

type PostRetryData struct {
	Result      RetryResult
	Reason      string
	Message     string
	TriggeredAt time.Time // set if the result is Triggered

	IsExceedRetryTimes bool
	IsRetryTimeout     bool
}

type Restore

type Restore brv1alpha1.Restore

func FromRestore

func FromRestore(r *brv1alpha1.Restore) *Restore

func (*Restore) ClientCASecretName

func (r *Restore) ClientCASecretName() string

func (*Restore) ClientCertKeyPairSecretName

func (r *Restore) ClientCertKeyPairSecretName() string

func (*Restore) ClientInsecureSkipTLSVerify

func (r *Restore) ClientInsecureSkipTLSVerify() bool

func (*Restore) Cluster

func (r *Restore) Cluster() string

func (*Restore) ClusterCASecretName

func (r *Restore) ClusterCASecretName() string

func (*Restore) ClusterCertKeyPairSecretName

func (r *Restore) ClusterCertKeyPairSecretName() string

func (*Restore) Completed

func (r *Restore) Completed() bool

func (*Restore) Component

func (r *Restore) Component() string

func (*Restore) Conditions

func (r *Restore) Conditions() []metav1.Condition

func (*Restore) Failed

func (r *Restore) Failed() bool

func (*Restore) Features

func (r *Restore) Features() []metav1alpha1.Feature

func (*Restore) Invalid

func (r *Restore) Invalid() bool

func (*Restore) K8sJob

func (r *Restore) K8sJob() client.ObjectKey

func (*Restore) NeedAddFinalizer

func (r *Restore) NeedAddFinalizer() bool

func (*Restore) NeedRemoveFinalizer

func (r *Restore) NeedRemoveFinalizer() bool

func (*Restore) Object

func (r *Restore) Object() client.Object

func (*Restore) ObservedGeneration

func (r *Restore) ObservedGeneration() int64

func (*Restore) SetCluster

func (r *Restore) SetCluster(cluster string)

func (*Restore) SetConditions

func (r *Restore) SetConditions(conds []metav1.Condition)

func (*Restore) SetImage

func (r *Restore) SetImage(string)

func (*Restore) SetObservedGeneration

func (r *Restore) SetObservedGeneration(int64)

func (*Restore) SetVersion

func (r *Restore) SetVersion(string)

func (*Restore) Version

func (r *Restore) Version() string

type RetriableJob

type RetriableJob interface {
	Job

	// NeedRetry returns true if the job needs to be retried
	NeedRetry() bool
	// LastRetryRecord returns the last retry record of the job
	LastRetryRecord() (brv1alpha1.BackoffRetryRecord, bool)
	// Retry is called when the job is retried
	Retry(reason, originalReason string, now time.Time) (nextRunAfter *time.Duration, _ error)
	// PostRetry is called when the job is retried
	PostRetry(now time.Time) error
}

type RetryResult

type RetryResult string
const (
	RetryResultTriggered   RetryResult = "Triggered"
	RetryResultExceedLimit RetryResult = "ExceedLimit"
)

type Scheduler

type Scheduler v1alpha1.Scheduler

func FromScheduler

func FromScheduler(in *v1alpha1.Scheduler) *Scheduler

func FromSchedulerSlice

func FromSchedulerSlice(ins []*v1alpha1.Scheduler) []*Scheduler

func (*Scheduler) ClientCASecretName

func (in *Scheduler) ClientCASecretName() string

func (*Scheduler) ClientCertKeyPairSecretName

func (in *Scheduler) ClientCertKeyPairSecretName() string

func (*Scheduler) ClientInsecureSkipTLSVerify

func (in *Scheduler) ClientInsecureSkipTLSVerify() bool

func (*Scheduler) Cluster

func (in *Scheduler) Cluster() string

func (*Scheduler) ClusterCASecretName

func (in *Scheduler) ClusterCASecretName() string

func (*Scheduler) ClusterCertKeyPairSecretName

func (in *Scheduler) ClusterCertKeyPairSecretName() string

func (*Scheduler) Component

func (*Scheduler) Component() string

func (*Scheduler) Conditions

func (in *Scheduler) Conditions() []metav1.Condition

func (*Scheduler) CurrentRevision

func (in *Scheduler) CurrentRevision() string

func (*Scheduler) DeepCopyObject

func (in *Scheduler) DeepCopyObject() runtime.Object

func (*Scheduler) Features

func (in *Scheduler) Features() []metav1alpha1.Feature

func (*Scheduler) GetTopology

func (in *Scheduler) GetTopology() v1alpha1.Topology

func (*Scheduler) GetUpdateRevision

func (in *Scheduler) GetUpdateRevision() string

func (*Scheduler) IsAvailable

func (in *Scheduler) IsAvailable(minReadySeconds int64, now time.Time) bool

func (*Scheduler) IsNotRunning

func (in *Scheduler) IsNotRunning() bool

func (*Scheduler) IsOffline

func (in *Scheduler) IsOffline() bool

func (*Scheduler) IsReady

func (in *Scheduler) IsReady() bool

func (*Scheduler) IsStore

func (in *Scheduler) IsStore() bool

func (*Scheduler) IsUpToDate

func (in *Scheduler) IsUpToDate() bool

func (*Scheduler) ObservedGeneration

func (in *Scheduler) ObservedGeneration() int64

func (*Scheduler) PVCOverlay

func (*Scheduler) PodOverlay

func (in *Scheduler) PodOverlay() *v1alpha1.PodOverlay

func (*Scheduler) SetCluster

func (in *Scheduler) SetCluster(cluster string)

func (*Scheduler) SetConditions

func (in *Scheduler) SetConditions(conds []metav1.Condition)

func (*Scheduler) SetCurrentRevision

func (in *Scheduler) SetCurrentRevision(rev string)

func (*Scheduler) SetImage

func (in *Scheduler) SetImage(image string)

func (*Scheduler) SetObservedGeneration

func (in *Scheduler) SetObservedGeneration(gen int64)

func (*Scheduler) SetTopology

func (in *Scheduler) SetTopology(t v1alpha1.Topology)

func (*Scheduler) SetVersion

func (in *Scheduler) SetVersion(version string)

func (*Scheduler) Subdomain

func (in *Scheduler) Subdomain() string

func (*Scheduler) To

func (in *Scheduler) To() *v1alpha1.Scheduler

func (*Scheduler) Version

func (in *Scheduler) Version() string

func (*Scheduler) Volumes

func (in *Scheduler) Volumes() []v1alpha1.Volume

type SchedulerGroup

type SchedulerGroup v1alpha1.SchedulerGroup

func FromSchedulerGroup

func FromSchedulerGroup(g *v1alpha1.SchedulerGroup) *SchedulerGroup

func FromSchedulerGroupSlice

func FromSchedulerGroupSlice(gs []*v1alpha1.SchedulerGroup) []*SchedulerGroup

func (*SchedulerGroup) ClientCASecretName

func (g *SchedulerGroup) ClientCASecretName() string

func (*SchedulerGroup) ClientCertKeyPairSecretName

func (g *SchedulerGroup) ClientCertKeyPairSecretName() string

func (*SchedulerGroup) ClientInsecureSkipTLSVerify

func (g *SchedulerGroup) ClientInsecureSkipTLSVerify() bool

func (*SchedulerGroup) Cluster

func (g *SchedulerGroup) Cluster() string

func (*SchedulerGroup) ClusterCASecretName

func (g *SchedulerGroup) ClusterCASecretName() string

func (*SchedulerGroup) ClusterCertKeyPairSecretName

func (g *SchedulerGroup) ClusterCertKeyPairSecretName() string

func (*SchedulerGroup) Component

func (*SchedulerGroup) Component() string

func (*SchedulerGroup) Conditions

func (g *SchedulerGroup) Conditions() []metav1.Condition

func (*SchedulerGroup) DeepCopyObject

func (g *SchedulerGroup) DeepCopyObject() runtime.Object

func (*SchedulerGroup) Features

func (g *SchedulerGroup) Features() []metav1alpha1.Feature

func (*SchedulerGroup) MinReadySeconds

func (g *SchedulerGroup) MinReadySeconds() int64

func (*SchedulerGroup) ObservedGeneration

func (g *SchedulerGroup) ObservedGeneration() int64

func (*SchedulerGroup) Replicas

func (g *SchedulerGroup) Replicas() int32

func (*SchedulerGroup) SchedulePolicies

func (g *SchedulerGroup) SchedulePolicies() []v1alpha1.SchedulePolicy

func (*SchedulerGroup) SetCluster

func (g *SchedulerGroup) SetCluster(cluster string)

func (*SchedulerGroup) SetConditions

func (g *SchedulerGroup) SetConditions(conds []metav1.Condition)

func (*SchedulerGroup) SetImage

func (g *SchedulerGroup) SetImage(image string)

func (*SchedulerGroup) SetObservedGeneration

func (g *SchedulerGroup) SetObservedGeneration(gen int64)

func (*SchedulerGroup) SetReplicas

func (g *SchedulerGroup) SetReplicas(replicas int32)

func (*SchedulerGroup) SetStatusReplicas

func (g *SchedulerGroup) SetStatusReplicas(replicas, ready, update, current int32)

func (*SchedulerGroup) SetStatusRevision

func (g *SchedulerGroup) SetStatusRevision(update, current string, collisionCount *int32)

func (*SchedulerGroup) SetStatusSelector

func (g *SchedulerGroup) SetStatusSelector(l string)

func (*SchedulerGroup) SetStatusVersion

func (g *SchedulerGroup) SetStatusVersion(version string)

func (*SchedulerGroup) SetTemplateAnnotations

func (g *SchedulerGroup) SetTemplateAnnotations(anno map[string]string)

func (*SchedulerGroup) SetTemplateLabels

func (g *SchedulerGroup) SetTemplateLabels(ls map[string]string)

func (*SchedulerGroup) SetVersion

func (g *SchedulerGroup) SetVersion(version string)

func (*SchedulerGroup) StatusReplicas

func (g *SchedulerGroup) StatusReplicas() (replicas, ready, update, current int32)

func (*SchedulerGroup) StatusRevision

func (g *SchedulerGroup) StatusRevision() (update, current string, collisionCount *int32)

func (*SchedulerGroup) StatusSelector

func (g *SchedulerGroup) StatusSelector() string

func (*SchedulerGroup) StatusVersion

func (g *SchedulerGroup) StatusVersion() string

func (*SchedulerGroup) TemplateAnnotations

func (g *SchedulerGroup) TemplateAnnotations() map[string]string

func (*SchedulerGroup) TemplateLabels

func (g *SchedulerGroup) TemplateLabels() map[string]string

func (*SchedulerGroup) To

func (*SchedulerGroup) Version

func (g *SchedulerGroup) Version() string

type SchedulerGroupTuple

type SchedulerGroupTuple struct{}

func (SchedulerGroupTuple) From

func (SchedulerGroupTuple) FromSlice

func (SchedulerGroupTuple) To

func (SchedulerGroupTuple) ToSlice

type SchedulerTuple

type SchedulerTuple struct{}

func (SchedulerTuple) From

func (SchedulerTuple) FromSlice

func (SchedulerTuple) FromSlice(t []*v1alpha1.Scheduler) []*Scheduler

func (SchedulerTuple) To

func (SchedulerTuple) ToSlice

func (SchedulerTuple) ToSlice(t []*Scheduler) []*v1alpha1.Scheduler

type Scheduling

type Scheduling v1alpha1.Scheduling

func FromScheduling

func FromScheduling(in *v1alpha1.Scheduling) *Scheduling

func FromSchedulingSlice

func FromSchedulingSlice(ins []*v1alpha1.Scheduling) []*Scheduling

func (*Scheduling) ClientCASecretName

func (in *Scheduling) ClientCASecretName() string

func (*Scheduling) ClientCertKeyPairSecretName

func (in *Scheduling) ClientCertKeyPairSecretName() string

func (*Scheduling) ClientInsecureSkipTLSVerify

func (in *Scheduling) ClientInsecureSkipTLSVerify() bool

func (*Scheduling) Cluster

func (in *Scheduling) Cluster() string

func (*Scheduling) ClusterCASecretName

func (in *Scheduling) ClusterCASecretName() string

func (*Scheduling) ClusterCertKeyPairSecretName

func (in *Scheduling) ClusterCertKeyPairSecretName() string

func (*Scheduling) Component

func (*Scheduling) Component() string

func (*Scheduling) Conditions

func (in *Scheduling) Conditions() []metav1.Condition

func (*Scheduling) CurrentRevision

func (in *Scheduling) CurrentRevision() string

func (*Scheduling) DeepCopyObject

func (in *Scheduling) DeepCopyObject() runtime.Object

func (*Scheduling) Features

func (in *Scheduling) Features() []metav1alpha1.Feature

func (*Scheduling) GetTopology

func (in *Scheduling) GetTopology() v1alpha1.Topology

func (*Scheduling) GetUpdateRevision

func (in *Scheduling) GetUpdateRevision() string

func (*Scheduling) IsAvailable

func (in *Scheduling) IsAvailable(minReadySeconds int64, now time.Time) bool

func (*Scheduling) IsNotRunning

func (in *Scheduling) IsNotRunning() bool

func (*Scheduling) IsOffline

func (in *Scheduling) IsOffline() bool

func (*Scheduling) IsReady

func (in *Scheduling) IsReady() bool

func (*Scheduling) IsStore

func (in *Scheduling) IsStore() bool

func (*Scheduling) IsUpToDate

func (in *Scheduling) IsUpToDate() bool

func (*Scheduling) ObservedGeneration

func (in *Scheduling) ObservedGeneration() int64

func (*Scheduling) PVCOverlay

func (*Scheduling) PodOverlay

func (in *Scheduling) PodOverlay() *v1alpha1.PodOverlay

func (*Scheduling) SetCluster

func (in *Scheduling) SetCluster(cluster string)

func (*Scheduling) SetConditions

func (in *Scheduling) SetConditions(conds []metav1.Condition)

func (*Scheduling) SetCurrentRevision

func (in *Scheduling) SetCurrentRevision(rev string)

func (*Scheduling) SetImage

func (in *Scheduling) SetImage(image string)

func (*Scheduling) SetObservedGeneration

func (in *Scheduling) SetObservedGeneration(gen int64)

func (*Scheduling) SetTopology

func (in *Scheduling) SetTopology(t v1alpha1.Topology)

func (*Scheduling) SetVersion

func (in *Scheduling) SetVersion(version string)

func (*Scheduling) Subdomain

func (in *Scheduling) Subdomain() string

func (*Scheduling) To

func (in *Scheduling) To() *v1alpha1.Scheduling

func (*Scheduling) Version

func (in *Scheduling) Version() string

func (*Scheduling) Volumes

func (in *Scheduling) Volumes() []v1alpha1.Volume

type SchedulingGroup

type SchedulingGroup v1alpha1.SchedulingGroup

func FromSchedulingGroup

func FromSchedulingGroup(g *v1alpha1.SchedulingGroup) *SchedulingGroup

func FromSchedulingGroupSlice

func FromSchedulingGroupSlice(gs []*v1alpha1.SchedulingGroup) []*SchedulingGroup

func (*SchedulingGroup) ClientCASecretName

func (g *SchedulingGroup) ClientCASecretName() string

func (*SchedulingGroup) ClientCertKeyPairSecretName

func (g *SchedulingGroup) ClientCertKeyPairSecretName() string

func (*SchedulingGroup) ClientInsecureSkipTLSVerify

func (g *SchedulingGroup) ClientInsecureSkipTLSVerify() bool

func (*SchedulingGroup) Cluster

func (g *SchedulingGroup) Cluster() string

func (*SchedulingGroup) ClusterCASecretName

func (g *SchedulingGroup) ClusterCASecretName() string

func (*SchedulingGroup) ClusterCertKeyPairSecretName

func (g *SchedulingGroup) ClusterCertKeyPairSecretName() string

func (*SchedulingGroup) Component

func (*SchedulingGroup) Component() string

func (*SchedulingGroup) Conditions

func (g *SchedulingGroup) Conditions() []metav1.Condition

func (*SchedulingGroup) DeepCopyObject

func (g *SchedulingGroup) DeepCopyObject() runtime.Object

func (*SchedulingGroup) Features

func (g *SchedulingGroup) Features() []metav1alpha1.Feature

func (*SchedulingGroup) MinReadySeconds

func (g *SchedulingGroup) MinReadySeconds() int64

func (*SchedulingGroup) ObservedGeneration

func (g *SchedulingGroup) ObservedGeneration() int64

func (*SchedulingGroup) Replicas

func (g *SchedulingGroup) Replicas() int32

func (*SchedulingGroup) SchedulePolicies

func (g *SchedulingGroup) SchedulePolicies() []v1alpha1.SchedulePolicy

func (*SchedulingGroup) SetCluster

func (g *SchedulingGroup) SetCluster(cluster string)

func (*SchedulingGroup) SetConditions

func (g *SchedulingGroup) SetConditions(conds []metav1.Condition)

func (*SchedulingGroup) SetImage

func (g *SchedulingGroup) SetImage(image string)

func (*SchedulingGroup) SetObservedGeneration

func (g *SchedulingGroup) SetObservedGeneration(gen int64)

func (*SchedulingGroup) SetReplicas

func (g *SchedulingGroup) SetReplicas(replicas int32)

func (*SchedulingGroup) SetStatusReplicas

func (g *SchedulingGroup) SetStatusReplicas(replicas, ready, update, current int32)

func (*SchedulingGroup) SetStatusRevision

func (g *SchedulingGroup) SetStatusRevision(update, current string, collisionCount *int32)

func (*SchedulingGroup) SetStatusSelector

func (g *SchedulingGroup) SetStatusSelector(l string)

func (*SchedulingGroup) SetStatusVersion

func (g *SchedulingGroup) SetStatusVersion(version string)

func (*SchedulingGroup) SetTemplateAnnotations

func (g *SchedulingGroup) SetTemplateAnnotations(anno map[string]string)

func (*SchedulingGroup) SetTemplateLabels

func (g *SchedulingGroup) SetTemplateLabels(ls map[string]string)

func (*SchedulingGroup) SetVersion

func (g *SchedulingGroup) SetVersion(version string)

func (*SchedulingGroup) StatusReplicas

func (g *SchedulingGroup) StatusReplicas() (replicas, ready, update, current int32)

func (*SchedulingGroup) StatusRevision

func (g *SchedulingGroup) StatusRevision() (update, current string, collisionCount *int32)

func (*SchedulingGroup) StatusSelector

func (g *SchedulingGroup) StatusSelector() string

func (*SchedulingGroup) StatusVersion

func (g *SchedulingGroup) StatusVersion() string

func (*SchedulingGroup) TemplateAnnotations

func (g *SchedulingGroup) TemplateAnnotations() map[string]string

func (*SchedulingGroup) TemplateLabels

func (g *SchedulingGroup) TemplateLabels() map[string]string

func (*SchedulingGroup) To

func (*SchedulingGroup) Version

func (g *SchedulingGroup) Version() string

type SchedulingGroupTuple

type SchedulingGroupTuple struct{}

func (SchedulingGroupTuple) From

func (SchedulingGroupTuple) FromSlice

func (SchedulingGroupTuple) To

func (SchedulingGroupTuple) ToSlice

type SchedulingTuple

type SchedulingTuple struct{}

func (SchedulingTuple) From

func (SchedulingTuple) FromSlice

func (SchedulingTuple) FromSlice(t []*v1alpha1.Scheduling) []*Scheduling

func (SchedulingTuple) To

func (SchedulingTuple) ToSlice

func (SchedulingTuple) ToSlice(t []*Scheduling) []*v1alpha1.Scheduling

type TSO

type TSO v1alpha1.TSO

func FromTSO

func FromTSO(in *v1alpha1.TSO) *TSO

func FromTSOSlice

func FromTSOSlice(ins []*v1alpha1.TSO) []*TSO

func (*TSO) ClientCASecretName

func (in *TSO) ClientCASecretName() string

func (*TSO) ClientCertKeyPairSecretName

func (in *TSO) ClientCertKeyPairSecretName() string

func (*TSO) ClientInsecureSkipTLSVerify

func (in *TSO) ClientInsecureSkipTLSVerify() bool

func (*TSO) Cluster

func (in *TSO) Cluster() string

func (*TSO) ClusterCASecretName

func (in *TSO) ClusterCASecretName() string

func (*TSO) ClusterCertKeyPairSecretName

func (in *TSO) ClusterCertKeyPairSecretName() string

func (*TSO) Component

func (*TSO) Component() string

func (*TSO) Conditions

func (in *TSO) Conditions() []metav1.Condition

func (*TSO) CurrentRevision

func (in *TSO) CurrentRevision() string

func (*TSO) DeepCopyObject

func (in *TSO) DeepCopyObject() runtime.Object

func (*TSO) Features

func (in *TSO) Features() []metav1alpha1.Feature

func (*TSO) GetTopology

func (in *TSO) GetTopology() v1alpha1.Topology

func (*TSO) GetUpdateRevision

func (in *TSO) GetUpdateRevision() string

func (*TSO) IsAvailable

func (in *TSO) IsAvailable(minReadySeconds int64, now time.Time) bool

func (*TSO) IsNotRunning

func (in *TSO) IsNotRunning() bool

func (*TSO) IsOffline

func (in *TSO) IsOffline() bool

func (*TSO) IsReady

func (in *TSO) IsReady() bool

func (*TSO) IsStore

func (in *TSO) IsStore() bool

func (*TSO) IsUpToDate

func (in *TSO) IsUpToDate() bool

func (*TSO) ObservedGeneration

func (in *TSO) ObservedGeneration() int64

func (*TSO) PVCOverlay

func (in *TSO) PVCOverlay() []v1alpha1.NamedPersistentVolumeClaimOverlay

func (*TSO) PodOverlay

func (in *TSO) PodOverlay() *v1alpha1.PodOverlay

func (*TSO) SetCluster

func (in *TSO) SetCluster(cluster string)

func (*TSO) SetConditions

func (in *TSO) SetConditions(conds []metav1.Condition)

func (*TSO) SetCurrentRevision

func (in *TSO) SetCurrentRevision(rev string)

func (*TSO) SetImage

func (in *TSO) SetImage(image string)

func (*TSO) SetObservedGeneration

func (in *TSO) SetObservedGeneration(gen int64)

func (*TSO) SetTopology

func (in *TSO) SetTopology(t v1alpha1.Topology)

func (*TSO) SetVersion

func (in *TSO) SetVersion(version string)

func (*TSO) Subdomain

func (in *TSO) Subdomain() string

func (*TSO) To

func (in *TSO) To() *v1alpha1.TSO

func (*TSO) Version

func (in *TSO) Version() string

func (*TSO) Volumes

func (in *TSO) Volumes() []v1alpha1.Volume

type TSOGroup

type TSOGroup v1alpha1.TSOGroup

func FromTSOGroup

func FromTSOGroup(g *v1alpha1.TSOGroup) *TSOGroup

func FromTSOGroupSlice

func FromTSOGroupSlice(gs []*v1alpha1.TSOGroup) []*TSOGroup

func (*TSOGroup) ClientCASecretName

func (g *TSOGroup) ClientCASecretName() string

func (*TSOGroup) ClientCertKeyPairSecretName

func (g *TSOGroup) ClientCertKeyPairSecretName() string

func (*TSOGroup) ClientInsecureSkipTLSVerify

func (g *TSOGroup) ClientInsecureSkipTLSVerify() bool

func (*TSOGroup) Cluster

func (g *TSOGroup) Cluster() string

func (*TSOGroup) ClusterCASecretName

func (g *TSOGroup) ClusterCASecretName() string

func (*TSOGroup) ClusterCertKeyPairSecretName

func (g *TSOGroup) ClusterCertKeyPairSecretName() string

func (*TSOGroup) Component

func (*TSOGroup) Component() string

func (*TSOGroup) Conditions

func (g *TSOGroup) Conditions() []metav1.Condition

func (*TSOGroup) DeepCopyObject

func (g *TSOGroup) DeepCopyObject() runtime.Object

func (*TSOGroup) Features

func (g *TSOGroup) Features() []metav1alpha1.Feature

func (*TSOGroup) MinReadySeconds

func (g *TSOGroup) MinReadySeconds() int64

func (*TSOGroup) ObservedGeneration

func (g *TSOGroup) ObservedGeneration() int64

func (*TSOGroup) Replicas

func (g *TSOGroup) Replicas() int32

func (*TSOGroup) SchedulePolicies

func (g *TSOGroup) SchedulePolicies() []v1alpha1.SchedulePolicy

func (*TSOGroup) SetCluster

func (g *TSOGroup) SetCluster(cluster string)

func (*TSOGroup) SetConditions

func (g *TSOGroup) SetConditions(conds []metav1.Condition)

func (*TSOGroup) SetImage

func (g *TSOGroup) SetImage(image string)

func (*TSOGroup) SetObservedGeneration

func (g *TSOGroup) SetObservedGeneration(gen int64)

func (*TSOGroup) SetReplicas

func (g *TSOGroup) SetReplicas(replicas int32)

func (*TSOGroup) SetStatusReplicas

func (g *TSOGroup) SetStatusReplicas(replicas, ready, update, current int32)

func (*TSOGroup) SetStatusRevision

func (g *TSOGroup) SetStatusRevision(update, current string, collisionCount *int32)

func (*TSOGroup) SetStatusSelector

func (g *TSOGroup) SetStatusSelector(l string)

func (*TSOGroup) SetStatusVersion

func (g *TSOGroup) SetStatusVersion(version string)

func (*TSOGroup) SetTemplateAnnotations

func (g *TSOGroup) SetTemplateAnnotations(anno map[string]string)

func (*TSOGroup) SetTemplateLabels

func (g *TSOGroup) SetTemplateLabels(ls map[string]string)

func (*TSOGroup) SetVersion

func (g *TSOGroup) SetVersion(version string)

func (*TSOGroup) StatusReplicas

func (g *TSOGroup) StatusReplicas() (replicas, ready, update, current int32)

func (*TSOGroup) StatusRevision

func (g *TSOGroup) StatusRevision() (update, current string, collisionCount *int32)

func (*TSOGroup) StatusSelector

func (g *TSOGroup) StatusSelector() string

func (*TSOGroup) StatusVersion

func (g *TSOGroup) StatusVersion() string

func (*TSOGroup) TemplateAnnotations

func (g *TSOGroup) TemplateAnnotations() map[string]string

func (*TSOGroup) TemplateLabels

func (g *TSOGroup) TemplateLabels() map[string]string

func (*TSOGroup) To

func (g *TSOGroup) To() *v1alpha1.TSOGroup

func (*TSOGroup) Version

func (g *TSOGroup) Version() string

type TSOGroupTuple

type TSOGroupTuple struct{}

func (TSOGroupTuple) From

func (TSOGroupTuple) FromSlice

func (TSOGroupTuple) FromSlice(t []*v1alpha1.TSOGroup) []*TSOGroup

func (TSOGroupTuple) To

func (TSOGroupTuple) ToSlice

func (TSOGroupTuple) ToSlice(t []*TSOGroup) []*v1alpha1.TSOGroup

type TSOTuple

type TSOTuple struct{}

func (TSOTuple) From

func (TSOTuple) From(t *v1alpha1.TSO) *TSO

func (TSOTuple) FromSlice

func (TSOTuple) FromSlice(t []*v1alpha1.TSO) []*TSO

func (TSOTuple) To

func (TSOTuple) To(t *TSO) *v1alpha1.TSO

func (TSOTuple) ToSlice

func (TSOTuple) ToSlice(t []*TSO) []*v1alpha1.TSO

type TiCDC

type TiCDC v1alpha1.TiCDC

func FromTiCDC

func FromTiCDC(in *v1alpha1.TiCDC) *TiCDC

func FromTiCDCSlice

func FromTiCDCSlice(ins []*v1alpha1.TiCDC) []*TiCDC

func (*TiCDC) ClientCASecretName

func (in *TiCDC) ClientCASecretName() string

func (*TiCDC) ClientCertKeyPairSecretName

func (in *TiCDC) ClientCertKeyPairSecretName() string

func (*TiCDC) ClientInsecureSkipTLSVerify

func (in *TiCDC) ClientInsecureSkipTLSVerify() bool

func (*TiCDC) Cluster

func (in *TiCDC) Cluster() string

func (*TiCDC) ClusterCASecretName

func (in *TiCDC) ClusterCASecretName() string

func (*TiCDC) ClusterCertKeyPairSecretName

func (in *TiCDC) ClusterCertKeyPairSecretName() string

func (*TiCDC) Component

func (*TiCDC) Component() string

func (*TiCDC) Conditions

func (in *TiCDC) Conditions() []metav1.Condition

func (*TiCDC) CurrentRevision

func (in *TiCDC) CurrentRevision() string

func (*TiCDC) DeepCopyObject

func (in *TiCDC) DeepCopyObject() runtime.Object

func (*TiCDC) Features

func (in *TiCDC) Features() []metav1alpha1.Feature

func (*TiCDC) GetTopology

func (in *TiCDC) GetTopology() v1alpha1.Topology

func (*TiCDC) GetUpdateRevision

func (in *TiCDC) GetUpdateRevision() string

func (*TiCDC) IsAvailable

func (in *TiCDC) IsAvailable(minReadySeconds int64, now time.Time) bool

func (*TiCDC) IsNotRunning

func (in *TiCDC) IsNotRunning() bool

func (*TiCDC) IsOffline

func (in *TiCDC) IsOffline() bool

func (*TiCDC) IsReady

func (in *TiCDC) IsReady() bool

func (*TiCDC) IsStore

func (in *TiCDC) IsStore() bool

func (*TiCDC) IsUpToDate

func (in *TiCDC) IsUpToDate() bool

func (*TiCDC) ObservedGeneration

func (in *TiCDC) ObservedGeneration() int64

func (*TiCDC) PVCOverlay

func (*TiCDC) PodOverlay

func (in *TiCDC) PodOverlay() *v1alpha1.PodOverlay

func (*TiCDC) SetCluster

func (in *TiCDC) SetCluster(cluster string)

func (*TiCDC) SetConditions

func (in *TiCDC) SetConditions(conds []metav1.Condition)

func (*TiCDC) SetCurrentRevision

func (in *TiCDC) SetCurrentRevision(rev string)

func (*TiCDC) SetImage

func (in *TiCDC) SetImage(image string)

func (*TiCDC) SetObservedGeneration

func (in *TiCDC) SetObservedGeneration(gen int64)

func (*TiCDC) SetTopology

func (in *TiCDC) SetTopology(t v1alpha1.Topology)

func (*TiCDC) SetVersion

func (in *TiCDC) SetVersion(version string)

func (*TiCDC) Subdomain

func (in *TiCDC) Subdomain() string

func (*TiCDC) To

func (in *TiCDC) To() *v1alpha1.TiCDC

func (*TiCDC) Version

func (in *TiCDC) Version() string

func (*TiCDC) Volumes

func (in *TiCDC) Volumes() []v1alpha1.Volume

type TiCDCGroup

type TiCDCGroup v1alpha1.TiCDCGroup

func FromTiCDCGroup

func FromTiCDCGroup(g *v1alpha1.TiCDCGroup) *TiCDCGroup

func FromTiCDCGroupSlice

func FromTiCDCGroupSlice(gs []*v1alpha1.TiCDCGroup) []*TiCDCGroup

func (*TiCDCGroup) ClientCASecretName

func (g *TiCDCGroup) ClientCASecretName() string

func (*TiCDCGroup) ClientCertKeyPairSecretName

func (g *TiCDCGroup) ClientCertKeyPairSecretName() string

func (*TiCDCGroup) ClientInsecureSkipTLSVerify

func (g *TiCDCGroup) ClientInsecureSkipTLSVerify() bool

func (*TiCDCGroup) Cluster

func (g *TiCDCGroup) Cluster() string

func (*TiCDCGroup) ClusterCASecretName

func (g *TiCDCGroup) ClusterCASecretName() string

func (*TiCDCGroup) ClusterCertKeyPairSecretName

func (g *TiCDCGroup) ClusterCertKeyPairSecretName() string

func (*TiCDCGroup) Component

func (*TiCDCGroup) Component() string

func (*TiCDCGroup) Conditions

func (g *TiCDCGroup) Conditions() []metav1.Condition

func (*TiCDCGroup) DeepCopyObject

func (g *TiCDCGroup) DeepCopyObject() runtime.Object

func (*TiCDCGroup) Features

func (g *TiCDCGroup) Features() []metav1alpha1.Feature

func (*TiCDCGroup) MinReadySeconds

func (g *TiCDCGroup) MinReadySeconds() int64

func (*TiCDCGroup) ObservedGeneration

func (g *TiCDCGroup) ObservedGeneration() int64

func (*TiCDCGroup) Replicas

func (g *TiCDCGroup) Replicas() int32

func (*TiCDCGroup) SchedulePolicies

func (g *TiCDCGroup) SchedulePolicies() []v1alpha1.SchedulePolicy

func (*TiCDCGroup) SetCluster

func (g *TiCDCGroup) SetCluster(cluster string)

func (*TiCDCGroup) SetConditions

func (g *TiCDCGroup) SetConditions(conds []metav1.Condition)

func (*TiCDCGroup) SetImage

func (g *TiCDCGroup) SetImage(image string)

func (*TiCDCGroup) SetObservedGeneration

func (g *TiCDCGroup) SetObservedGeneration(gen int64)

func (*TiCDCGroup) SetReplicas

func (g *TiCDCGroup) SetReplicas(replicas int32)

func (*TiCDCGroup) SetStatusReplicas

func (g *TiCDCGroup) SetStatusReplicas(replicas, ready, update, current int32)

func (*TiCDCGroup) SetStatusRevision

func (g *TiCDCGroup) SetStatusRevision(update, current string, collisionCount *int32)

func (*TiCDCGroup) SetStatusSelector

func (g *TiCDCGroup) SetStatusSelector(l string)

func (*TiCDCGroup) SetStatusVersion

func (g *TiCDCGroup) SetStatusVersion(version string)

func (*TiCDCGroup) SetTemplateAnnotations

func (g *TiCDCGroup) SetTemplateAnnotations(anno map[string]string)

func (*TiCDCGroup) SetTemplateLabels

func (g *TiCDCGroup) SetTemplateLabels(ls map[string]string)

func (*TiCDCGroup) SetVersion

func (g *TiCDCGroup) SetVersion(version string)

func (*TiCDCGroup) StatusReplicas

func (g *TiCDCGroup) StatusReplicas() (replicas, ready, update, current int32)

func (*TiCDCGroup) StatusRevision

func (g *TiCDCGroup) StatusRevision() (update, current string, collisionCount *int32)

func (*TiCDCGroup) StatusSelector

func (g *TiCDCGroup) StatusSelector() string

func (*TiCDCGroup) StatusVersion

func (g *TiCDCGroup) StatusVersion() string

func (*TiCDCGroup) TemplateAnnotations

func (g *TiCDCGroup) TemplateAnnotations() map[string]string

func (*TiCDCGroup) TemplateLabels

func (g *TiCDCGroup) TemplateLabels() map[string]string

func (*TiCDCGroup) To

func (g *TiCDCGroup) To() *v1alpha1.TiCDCGroup

func (*TiCDCGroup) Version

func (g *TiCDCGroup) Version() string

type TiCDCGroupTuple

type TiCDCGroupTuple struct{}

func (TiCDCGroupTuple) From

func (TiCDCGroupTuple) FromSlice

func (TiCDCGroupTuple) FromSlice(t []*v1alpha1.TiCDCGroup) []*TiCDCGroup

func (TiCDCGroupTuple) To

func (TiCDCGroupTuple) ToSlice

func (TiCDCGroupTuple) ToSlice(t []*TiCDCGroup) []*v1alpha1.TiCDCGroup

type TiCDCTuple

type TiCDCTuple struct{}

func (TiCDCTuple) From

func (TiCDCTuple) From(t *v1alpha1.TiCDC) *TiCDC

func (TiCDCTuple) FromSlice

func (TiCDCTuple) FromSlice(t []*v1alpha1.TiCDC) []*TiCDC

func (TiCDCTuple) To

func (TiCDCTuple) To(t *TiCDC) *v1alpha1.TiCDC

func (TiCDCTuple) ToSlice

func (TiCDCTuple) ToSlice(t []*TiCDC) []*v1alpha1.TiCDC

type TiDB

type TiDB v1alpha1.TiDB

func FromTiDB

func FromTiDB(in *v1alpha1.TiDB) *TiDB

func FromTiDBSlice

func FromTiDBSlice(ins []*v1alpha1.TiDB) []*TiDB

func (*TiDB) ClientCASecretName

func (in *TiDB) ClientCASecretName() string

func (*TiDB) ClientCertKeyPairSecretName

func (in *TiDB) ClientCertKeyPairSecretName() string

func (*TiDB) ClientInsecureSkipTLSVerify

func (in *TiDB) ClientInsecureSkipTLSVerify() bool

func (*TiDB) Cluster

func (in *TiDB) Cluster() string

func (*TiDB) ClusterCASecretName

func (in *TiDB) ClusterCASecretName() string

func (*TiDB) ClusterCertKeyPairSecretName

func (in *TiDB) ClusterCertKeyPairSecretName() string

func (*TiDB) Component

func (*TiDB) Component() string

func (*TiDB) Conditions

func (in *TiDB) Conditions() []metav1.Condition

func (*TiDB) CurrentRevision

func (in *TiDB) CurrentRevision() string

func (*TiDB) DeepCopyObject

func (in *TiDB) DeepCopyObject() runtime.Object

func (*TiDB) Features

func (in *TiDB) Features() []metav1alpha1.Feature

func (*TiDB) GetTopology

func (in *TiDB) GetTopology() v1alpha1.Topology

func (*TiDB) GetUpdateRevision

func (in *TiDB) GetUpdateRevision() string

func (*TiDB) IsAvailable

func (in *TiDB) IsAvailable(minReadySeconds int64, now time.Time) bool

func (*TiDB) IsNotRunning

func (in *TiDB) IsNotRunning() bool

func (*TiDB) IsOffline

func (in *TiDB) IsOffline() bool

func (*TiDB) IsReady

func (in *TiDB) IsReady() bool

func (*TiDB) IsStore

func (in *TiDB) IsStore() bool

func (*TiDB) IsUpToDate

func (in *TiDB) IsUpToDate() bool

func (*TiDB) ObservedGeneration

func (in *TiDB) ObservedGeneration() int64

func (*TiDB) PVCOverlay

func (in *TiDB) PVCOverlay() []v1alpha1.NamedPersistentVolumeClaimOverlay

func (*TiDB) PodOverlay

func (in *TiDB) PodOverlay() *v1alpha1.PodOverlay

func (*TiDB) SetCluster

func (in *TiDB) SetCluster(cluster string)

func (*TiDB) SetConditions

func (in *TiDB) SetConditions(conds []metav1.Condition)

func (*TiDB) SetCurrentRevision

func (in *TiDB) SetCurrentRevision(rev string)

func (*TiDB) SetImage

func (in *TiDB) SetImage(image string)

func (*TiDB) SetObservedGeneration

func (in *TiDB) SetObservedGeneration(gen int64)

func (*TiDB) SetTopology

func (in *TiDB) SetTopology(t v1alpha1.Topology)

func (*TiDB) SetVersion

func (in *TiDB) SetVersion(version string)

func (*TiDB) Subdomain

func (in *TiDB) Subdomain() string

func (*TiDB) To

func (in *TiDB) To() *v1alpha1.TiDB

func (*TiDB) Version

func (in *TiDB) Version() string

func (*TiDB) Volumes

func (in *TiDB) Volumes() []v1alpha1.Volume

type TiDBGroup

type TiDBGroup v1alpha1.TiDBGroup

func FromTiDBGroup

func FromTiDBGroup(g *v1alpha1.TiDBGroup) *TiDBGroup

func FromTiDBGroupSlice

func FromTiDBGroupSlice(gs []*v1alpha1.TiDBGroup) []*TiDBGroup

func (*TiDBGroup) ClientCASecretName

func (g *TiDBGroup) ClientCASecretName() string

func (*TiDBGroup) ClientCertKeyPairSecretName

func (g *TiDBGroup) ClientCertKeyPairSecretName() string

func (*TiDBGroup) ClientInsecureSkipTLSVerify

func (g *TiDBGroup) ClientInsecureSkipTLSVerify() bool

func (*TiDBGroup) Cluster

func (g *TiDBGroup) Cluster() string

func (*TiDBGroup) ClusterCASecretName

func (g *TiDBGroup) ClusterCASecretName() string

func (*TiDBGroup) ClusterCertKeyPairSecretName

func (g *TiDBGroup) ClusterCertKeyPairSecretName() string

func (*TiDBGroup) Component

func (*TiDBGroup) Component() string

func (*TiDBGroup) Conditions

func (g *TiDBGroup) Conditions() []metav1.Condition

func (*TiDBGroup) DeepCopyObject

func (g *TiDBGroup) DeepCopyObject() runtime.Object

func (*TiDBGroup) Features

func (g *TiDBGroup) Features() []metav1alpha1.Feature

func (*TiDBGroup) MinReadySeconds

func (g *TiDBGroup) MinReadySeconds() int64

func (*TiDBGroup) ObservedGeneration

func (g *TiDBGroup) ObservedGeneration() int64

func (*TiDBGroup) Replicas

func (g *TiDBGroup) Replicas() int32

func (*TiDBGroup) SchedulePolicies

func (g *TiDBGroup) SchedulePolicies() []v1alpha1.SchedulePolicy

func (*TiDBGroup) SetCluster

func (g *TiDBGroup) SetCluster(cluster string)

func (*TiDBGroup) SetConditions

func (g *TiDBGroup) SetConditions(conds []metav1.Condition)

func (*TiDBGroup) SetImage

func (g *TiDBGroup) SetImage(image string)

func (*TiDBGroup) SetObservedGeneration

func (g *TiDBGroup) SetObservedGeneration(gen int64)

func (*TiDBGroup) SetReplicas

func (g *TiDBGroup) SetReplicas(replicas int32)

func (*TiDBGroup) SetStatusReplicas

func (g *TiDBGroup) SetStatusReplicas(replicas, ready, update, current int32)

func (*TiDBGroup) SetStatusRevision

func (g *TiDBGroup) SetStatusRevision(update, current string, collisionCount *int32)

func (*TiDBGroup) SetStatusSelector

func (g *TiDBGroup) SetStatusSelector(l string)

func (*TiDBGroup) SetStatusVersion

func (g *TiDBGroup) SetStatusVersion(version string)

func (*TiDBGroup) SetTemplateAnnotations

func (g *TiDBGroup) SetTemplateAnnotations(anno map[string]string)

func (*TiDBGroup) SetTemplateLabels

func (g *TiDBGroup) SetTemplateLabels(ls map[string]string)

func (*TiDBGroup) SetVersion

func (g *TiDBGroup) SetVersion(version string)

func (*TiDBGroup) StatusReplicas

func (g *TiDBGroup) StatusReplicas() (replicas, ready, update, current int32)

func (*TiDBGroup) StatusRevision

func (g *TiDBGroup) StatusRevision() (update, current string, collisionCount *int32)

func (*TiDBGroup) StatusSelector

func (g *TiDBGroup) StatusSelector() string

func (*TiDBGroup) StatusVersion

func (g *TiDBGroup) StatusVersion() string

func (*TiDBGroup) TemplateAnnotations

func (g *TiDBGroup) TemplateAnnotations() map[string]string

func (*TiDBGroup) TemplateLabels

func (g *TiDBGroup) TemplateLabels() map[string]string

func (*TiDBGroup) To

func (g *TiDBGroup) To() *v1alpha1.TiDBGroup

func (*TiDBGroup) Version

func (g *TiDBGroup) Version() string

type TiDBGroupTuple

type TiDBGroupTuple struct{}

func (TiDBGroupTuple) From

func (TiDBGroupTuple) FromSlice

func (TiDBGroupTuple) FromSlice(t []*v1alpha1.TiDBGroup) []*TiDBGroup

func (TiDBGroupTuple) To

func (TiDBGroupTuple) ToSlice

func (TiDBGroupTuple) ToSlice(t []*TiDBGroup) []*v1alpha1.TiDBGroup

type TiDBTuple

type TiDBTuple struct{}

func (TiDBTuple) From

func (TiDBTuple) From(t *v1alpha1.TiDB) *TiDB

func (TiDBTuple) FromSlice

func (TiDBTuple) FromSlice(t []*v1alpha1.TiDB) []*TiDB

func (TiDBTuple) To

func (TiDBTuple) To(t *TiDB) *v1alpha1.TiDB

func (TiDBTuple) ToSlice

func (TiDBTuple) ToSlice(t []*TiDB) []*v1alpha1.TiDB

type TiFlash

type TiFlash v1alpha1.TiFlash

func FromTiFlash

func FromTiFlash(in *v1alpha1.TiFlash) *TiFlash

func FromTiFlashSlice

func FromTiFlashSlice(ins []*v1alpha1.TiFlash) []*TiFlash

func (*TiFlash) ClientCASecretName

func (in *TiFlash) ClientCASecretName() string

func (*TiFlash) ClientCertKeyPairSecretName

func (in *TiFlash) ClientCertKeyPairSecretName() string

func (*TiFlash) ClientInsecureSkipTLSVerify

func (in *TiFlash) ClientInsecureSkipTLSVerify() bool

func (*TiFlash) Cluster

func (in *TiFlash) Cluster() string

func (*TiFlash) ClusterCASecretName

func (in *TiFlash) ClusterCASecretName() string

func (*TiFlash) ClusterCertKeyPairSecretName

func (in *TiFlash) ClusterCertKeyPairSecretName() string

func (*TiFlash) Component

func (*TiFlash) Component() string

func (*TiFlash) Conditions

func (in *TiFlash) Conditions() []metav1.Condition

func (*TiFlash) CurrentRevision

func (in *TiFlash) CurrentRevision() string

func (*TiFlash) DeepCopyObject

func (in *TiFlash) DeepCopyObject() runtime.Object

func (*TiFlash) Features

func (in *TiFlash) Features() []metav1alpha1.Feature

func (*TiFlash) GetTopology

func (in *TiFlash) GetTopology() v1alpha1.Topology

func (*TiFlash) GetUpdateRevision

func (in *TiFlash) GetUpdateRevision() string

func (*TiFlash) IsAvailable

func (in *TiFlash) IsAvailable(minReadySeconds int64, now time.Time) bool

func (*TiFlash) IsNotRunning

func (in *TiFlash) IsNotRunning() bool

func (*TiFlash) IsOffline

func (in *TiFlash) IsOffline() bool

func (*TiFlash) IsReady

func (in *TiFlash) IsReady() bool

func (*TiFlash) IsStore

func (in *TiFlash) IsStore() bool

func (*TiFlash) IsUpToDate

func (in *TiFlash) IsUpToDate() bool

func (*TiFlash) ObservedGeneration

func (in *TiFlash) ObservedGeneration() int64

func (*TiFlash) PVCOverlay

func (*TiFlash) PodOverlay

func (in *TiFlash) PodOverlay() *v1alpha1.PodOverlay

func (*TiFlash) SetCluster

func (in *TiFlash) SetCluster(cluster string)

func (*TiFlash) SetConditions

func (in *TiFlash) SetConditions(conds []metav1.Condition)

func (*TiFlash) SetCurrentRevision

func (in *TiFlash) SetCurrentRevision(rev string)

func (*TiFlash) SetImage

func (in *TiFlash) SetImage(image string)

func (*TiFlash) SetObservedGeneration

func (in *TiFlash) SetObservedGeneration(gen int64)

func (*TiFlash) SetTopology

func (in *TiFlash) SetTopology(t v1alpha1.Topology)

func (*TiFlash) SetVersion

func (in *TiFlash) SetVersion(version string)

func (*TiFlash) Subdomain

func (in *TiFlash) Subdomain() string

func (*TiFlash) To

func (in *TiFlash) To() *v1alpha1.TiFlash

func (*TiFlash) Version

func (in *TiFlash) Version() string

func (*TiFlash) Volumes

func (in *TiFlash) Volumes() []v1alpha1.Volume

type TiFlashGroup

type TiFlashGroup v1alpha1.TiFlashGroup

func FromTiFlashGroup

func FromTiFlashGroup(g *v1alpha1.TiFlashGroup) *TiFlashGroup

func FromTiFlashGroupSlice

func FromTiFlashGroupSlice(gs []*v1alpha1.TiFlashGroup) []*TiFlashGroup

func (*TiFlashGroup) ClientCASecretName

func (g *TiFlashGroup) ClientCASecretName() string

func (*TiFlashGroup) ClientCertKeyPairSecretName

func (g *TiFlashGroup) ClientCertKeyPairSecretName() string

func (*TiFlashGroup) ClientInsecureSkipTLSVerify

func (g *TiFlashGroup) ClientInsecureSkipTLSVerify() bool

func (*TiFlashGroup) Cluster

func (g *TiFlashGroup) Cluster() string

func (*TiFlashGroup) ClusterCASecretName

func (g *TiFlashGroup) ClusterCASecretName() string

func (*TiFlashGroup) ClusterCertKeyPairSecretName

func (g *TiFlashGroup) ClusterCertKeyPairSecretName() string

func (*TiFlashGroup) Component

func (*TiFlashGroup) Component() string

func (*TiFlashGroup) Conditions

func (g *TiFlashGroup) Conditions() []metav1.Condition

func (*TiFlashGroup) DeepCopyObject

func (g *TiFlashGroup) DeepCopyObject() runtime.Object

func (*TiFlashGroup) Features

func (g *TiFlashGroup) Features() []metav1alpha1.Feature

func (*TiFlashGroup) MinReadySeconds

func (g *TiFlashGroup) MinReadySeconds() int64

func (*TiFlashGroup) ObservedGeneration

func (g *TiFlashGroup) ObservedGeneration() int64

func (*TiFlashGroup) Replicas

func (g *TiFlashGroup) Replicas() int32

func (*TiFlashGroup) SchedulePolicies

func (g *TiFlashGroup) SchedulePolicies() []v1alpha1.SchedulePolicy

func (*TiFlashGroup) SetCluster

func (g *TiFlashGroup) SetCluster(cluster string)

func (*TiFlashGroup) SetConditions

func (g *TiFlashGroup) SetConditions(conds []metav1.Condition)

func (*TiFlashGroup) SetImage

func (g *TiFlashGroup) SetImage(image string)

func (*TiFlashGroup) SetObservedGeneration

func (g *TiFlashGroup) SetObservedGeneration(gen int64)

func (*TiFlashGroup) SetReplicas

func (g *TiFlashGroup) SetReplicas(replicas int32)

func (*TiFlashGroup) SetStatusReplicas

func (g *TiFlashGroup) SetStatusReplicas(replicas, ready, update, current int32)

func (*TiFlashGroup) SetStatusRevision

func (g *TiFlashGroup) SetStatusRevision(update, current string, collisionCount *int32)

func (*TiFlashGroup) SetStatusSelector

func (g *TiFlashGroup) SetStatusSelector(l string)

func (*TiFlashGroup) SetStatusVersion

func (g *TiFlashGroup) SetStatusVersion(version string)

func (*TiFlashGroup) SetTemplateAnnotations

func (g *TiFlashGroup) SetTemplateAnnotations(anno map[string]string)

func (*TiFlashGroup) SetTemplateLabels

func (g *TiFlashGroup) SetTemplateLabels(ls map[string]string)

func (*TiFlashGroup) SetVersion

func (g *TiFlashGroup) SetVersion(version string)

func (*TiFlashGroup) StatusReplicas

func (g *TiFlashGroup) StatusReplicas() (replicas, ready, update, current int32)

func (*TiFlashGroup) StatusRevision

func (g *TiFlashGroup) StatusRevision() (update, current string, collisionCount *int32)

func (*TiFlashGroup) StatusSelector

func (g *TiFlashGroup) StatusSelector() string

func (*TiFlashGroup) StatusVersion

func (g *TiFlashGroup) StatusVersion() string

func (*TiFlashGroup) TemplateAnnotations

func (g *TiFlashGroup) TemplateAnnotations() map[string]string

func (*TiFlashGroup) TemplateLabels

func (g *TiFlashGroup) TemplateLabels() map[string]string

func (*TiFlashGroup) To

func (*TiFlashGroup) Version

func (g *TiFlashGroup) Version() string

type TiFlashGroupTuple

type TiFlashGroupTuple struct{}

func (TiFlashGroupTuple) From

func (TiFlashGroupTuple) FromSlice

func (TiFlashGroupTuple) To

func (TiFlashGroupTuple) ToSlice

type TiFlashTuple

type TiFlashTuple struct{}

func (TiFlashTuple) From

func (TiFlashTuple) FromSlice

func (TiFlashTuple) FromSlice(t []*v1alpha1.TiFlash) []*TiFlash

func (TiFlashTuple) To

func (TiFlashTuple) ToSlice

func (TiFlashTuple) ToSlice(t []*TiFlash) []*v1alpha1.TiFlash

type TiKV

type TiKV v1alpha1.TiKV

func FromTiKV

func FromTiKV(in *v1alpha1.TiKV) *TiKV

func FromTiKVSlice

func FromTiKVSlice(ins []*v1alpha1.TiKV) []*TiKV

func (*TiKV) ClientCASecretName

func (in *TiKV) ClientCASecretName() string

func (*TiKV) ClientCertKeyPairSecretName

func (in *TiKV) ClientCertKeyPairSecretName() string

func (*TiKV) ClientInsecureSkipTLSVerify

func (in *TiKV) ClientInsecureSkipTLSVerify() bool

func (*TiKV) Cluster

func (in *TiKV) Cluster() string

func (*TiKV) ClusterCASecretName

func (in *TiKV) ClusterCASecretName() string

func (*TiKV) ClusterCertKeyPairSecretName

func (in *TiKV) ClusterCertKeyPairSecretName() string

func (*TiKV) Component

func (*TiKV) Component() string

func (*TiKV) Conditions

func (in *TiKV) Conditions() []metav1.Condition

func (*TiKV) CurrentRevision

func (in *TiKV) CurrentRevision() string

func (*TiKV) DeepCopyObject

func (in *TiKV) DeepCopyObject() runtime.Object

func (*TiKV) Features

func (in *TiKV) Features() []metav1alpha1.Feature

func (*TiKV) GetTopology

func (in *TiKV) GetTopology() v1alpha1.Topology

func (*TiKV) GetUpdateRevision

func (in *TiKV) GetUpdateRevision() string

func (*TiKV) IsAvailable

func (in *TiKV) IsAvailable(minReadySeconds int64, now time.Time) bool

func (*TiKV) IsNotRunning

func (in *TiKV) IsNotRunning() bool

func (*TiKV) IsOffline

func (in *TiKV) IsOffline() bool

func (*TiKV) IsReady

func (in *TiKV) IsReady() bool

func (*TiKV) IsStore

func (in *TiKV) IsStore() bool

func (*TiKV) IsUpToDate

func (in *TiKV) IsUpToDate() bool

func (*TiKV) ObservedGeneration

func (in *TiKV) ObservedGeneration() int64

func (*TiKV) PVCOverlay

func (in *TiKV) PVCOverlay() []v1alpha1.NamedPersistentVolumeClaimOverlay

func (*TiKV) PodOverlay

func (in *TiKV) PodOverlay() *v1alpha1.PodOverlay

func (*TiKV) SetCluster

func (in *TiKV) SetCluster(cluster string)

func (*TiKV) SetConditions

func (in *TiKV) SetConditions(conds []metav1.Condition)

func (*TiKV) SetCurrentRevision

func (in *TiKV) SetCurrentRevision(rev string)

func (*TiKV) SetImage

func (in *TiKV) SetImage(image string)

func (*TiKV) SetObservedGeneration

func (in *TiKV) SetObservedGeneration(gen int64)

func (*TiKV) SetTopology

func (in *TiKV) SetTopology(t v1alpha1.Topology)

func (*TiKV) SetVersion

func (in *TiKV) SetVersion(version string)

func (*TiKV) Subdomain

func (in *TiKV) Subdomain() string

func (*TiKV) To

func (in *TiKV) To() *v1alpha1.TiKV

func (*TiKV) Version

func (in *TiKV) Version() string

func (*TiKV) Volumes

func (in *TiKV) Volumes() []v1alpha1.Volume

type TiKVGroup

type TiKVGroup v1alpha1.TiKVGroup

func FromTiKVGroup

func FromTiKVGroup(g *v1alpha1.TiKVGroup) *TiKVGroup

func FromTiKVGroupSlice

func FromTiKVGroupSlice(gs []*v1alpha1.TiKVGroup) []*TiKVGroup

func (*TiKVGroup) ClientCASecretName

func (g *TiKVGroup) ClientCASecretName() string

func (*TiKVGroup) ClientCertKeyPairSecretName

func (g *TiKVGroup) ClientCertKeyPairSecretName() string

func (*TiKVGroup) ClientInsecureSkipTLSVerify

func (g *TiKVGroup) ClientInsecureSkipTLSVerify() bool

func (*TiKVGroup) Cluster

func (g *TiKVGroup) Cluster() string

func (*TiKVGroup) ClusterCASecretName

func (g *TiKVGroup) ClusterCASecretName() string

func (*TiKVGroup) ClusterCertKeyPairSecretName

func (g *TiKVGroup) ClusterCertKeyPairSecretName() string

func (*TiKVGroup) Component

func (*TiKVGroup) Component() string

func (*TiKVGroup) Conditions

func (g *TiKVGroup) Conditions() []metav1.Condition

func (*TiKVGroup) DeepCopyObject

func (g *TiKVGroup) DeepCopyObject() runtime.Object

func (*TiKVGroup) Features

func (g *TiKVGroup) Features() []metav1alpha1.Feature

func (*TiKVGroup) MinReadySeconds

func (g *TiKVGroup) MinReadySeconds() int64

func (*TiKVGroup) ObservedGeneration

func (g *TiKVGroup) ObservedGeneration() int64

func (*TiKVGroup) Replicas

func (g *TiKVGroup) Replicas() int32

func (*TiKVGroup) SchedulePolicies

func (g *TiKVGroup) SchedulePolicies() []v1alpha1.SchedulePolicy

func (*TiKVGroup) SetCluster

func (g *TiKVGroup) SetCluster(cluster string)

func (*TiKVGroup) SetConditions

func (g *TiKVGroup) SetConditions(conds []metav1.Condition)

func (*TiKVGroup) SetImage

func (g *TiKVGroup) SetImage(image string)

func (*TiKVGroup) SetObservedGeneration

func (g *TiKVGroup) SetObservedGeneration(gen int64)

func (*TiKVGroup) SetReplicas

func (g *TiKVGroup) SetReplicas(replicas int32)

func (*TiKVGroup) SetStatusReplicas

func (g *TiKVGroup) SetStatusReplicas(replicas, ready, update, current int32)

func (*TiKVGroup) SetStatusRevision

func (g *TiKVGroup) SetStatusRevision(update, current string, collisionCount *int32)

func (*TiKVGroup) SetStatusSelector

func (g *TiKVGroup) SetStatusSelector(l string)

func (*TiKVGroup) SetStatusVersion

func (g *TiKVGroup) SetStatusVersion(version string)

func (*TiKVGroup) SetTemplateAnnotations

func (g *TiKVGroup) SetTemplateAnnotations(anno map[string]string)

func (*TiKVGroup) SetTemplateLabels

func (g *TiKVGroup) SetTemplateLabels(ls map[string]string)

func (*TiKVGroup) SetVersion

func (g *TiKVGroup) SetVersion(version string)

func (*TiKVGroup) StatusReplicas

func (g *TiKVGroup) StatusReplicas() (replicas, ready, update, current int32)

func (*TiKVGroup) StatusRevision

func (g *TiKVGroup) StatusRevision() (update, current string, collisionCount *int32)

func (*TiKVGroup) StatusSelector

func (g *TiKVGroup) StatusSelector() string

func (*TiKVGroup) StatusVersion

func (g *TiKVGroup) StatusVersion() string

func (*TiKVGroup) TemplateAnnotations

func (g *TiKVGroup) TemplateAnnotations() map[string]string

func (*TiKVGroup) TemplateLabels

func (g *TiKVGroup) TemplateLabels() map[string]string

func (*TiKVGroup) To

func (g *TiKVGroup) To() *v1alpha1.TiKVGroup

func (*TiKVGroup) Version

func (g *TiKVGroup) Version() string

type TiKVGroupTuple

type TiKVGroupTuple struct{}

func (TiKVGroupTuple) From

func (TiKVGroupTuple) FromSlice

func (TiKVGroupTuple) FromSlice(t []*v1alpha1.TiKVGroup) []*TiKVGroup

func (TiKVGroupTuple) To

func (TiKVGroupTuple) ToSlice

func (TiKVGroupTuple) ToSlice(t []*TiKVGroup) []*v1alpha1.TiKVGroup

type TiKVTuple

type TiKVTuple struct{}

func (TiKVTuple) From

func (TiKVTuple) From(t *v1alpha1.TiKV) *TiKV

func (TiKVTuple) FromSlice

func (TiKVTuple) FromSlice(t []*v1alpha1.TiKV) []*TiKV

func (TiKVTuple) To

func (TiKVTuple) To(t *TiKV) *v1alpha1.TiKV

func (TiKVTuple) ToSlice

func (TiKVTuple) ToSlice(t []*TiKV) []*v1alpha1.TiKV

type TiProxy

type TiProxy v1alpha1.TiProxy

func FromTiProxy

func FromTiProxy(in *v1alpha1.TiProxy) *TiProxy

func FromTiProxySlice

func FromTiProxySlice(ins []*v1alpha1.TiProxy) []*TiProxy

func (*TiProxy) ClientCASecretName

func (in *TiProxy) ClientCASecretName() string

func (*TiProxy) ClientCertKeyPairSecretName

func (in *TiProxy) ClientCertKeyPairSecretName() string

func (*TiProxy) ClientInsecureSkipTLSVerify

func (in *TiProxy) ClientInsecureSkipTLSVerify() bool

func (*TiProxy) Cluster

func (in *TiProxy) Cluster() string

func (*TiProxy) ClusterCASecretName

func (in *TiProxy) ClusterCASecretName() string

func (*TiProxy) ClusterCertKeyPairSecretName

func (in *TiProxy) ClusterCertKeyPairSecretName() string

func (*TiProxy) Component

func (*TiProxy) Component() string

func (*TiProxy) Conditions

func (in *TiProxy) Conditions() []metav1.Condition

func (*TiProxy) CurrentRevision

func (in *TiProxy) CurrentRevision() string

func (*TiProxy) DeepCopyObject

func (in *TiProxy) DeepCopyObject() runtime.Object

func (*TiProxy) Features

func (in *TiProxy) Features() []metav1alpha1.Feature

func (*TiProxy) GetTopology

func (in *TiProxy) GetTopology() v1alpha1.Topology

func (*TiProxy) GetUpdateRevision

func (in *TiProxy) GetUpdateRevision() string

func (*TiProxy) IsAvailable

func (in *TiProxy) IsAvailable(minReadySeconds int64, now time.Time) bool

func (*TiProxy) IsNotRunning

func (in *TiProxy) IsNotRunning() bool

func (*TiProxy) IsOffline

func (in *TiProxy) IsOffline() bool

func (*TiProxy) IsReady

func (in *TiProxy) IsReady() bool

func (*TiProxy) IsStore

func (in *TiProxy) IsStore() bool

func (*TiProxy) IsUpToDate

func (in *TiProxy) IsUpToDate() bool

func (*TiProxy) ObservedGeneration

func (in *TiProxy) ObservedGeneration() int64

func (*TiProxy) PVCOverlay

func (*TiProxy) PodOverlay

func (in *TiProxy) PodOverlay() *v1alpha1.PodOverlay

func (*TiProxy) SetCluster

func (in *TiProxy) SetCluster(cluster string)

func (*TiProxy) SetConditions

func (in *TiProxy) SetConditions(conds []metav1.Condition)

func (*TiProxy) SetCurrentRevision

func (in *TiProxy) SetCurrentRevision(rev string)

func (*TiProxy) SetImage

func (in *TiProxy) SetImage(image string)

func (*TiProxy) SetObservedGeneration

func (in *TiProxy) SetObservedGeneration(gen int64)

func (*TiProxy) SetTopology

func (in *TiProxy) SetTopology(t v1alpha1.Topology)

func (*TiProxy) SetVersion

func (in *TiProxy) SetVersion(version string)

func (*TiProxy) Subdomain

func (in *TiProxy) Subdomain() string

func (*TiProxy) To

func (in *TiProxy) To() *v1alpha1.TiProxy

func (*TiProxy) Version

func (in *TiProxy) Version() string

func (*TiProxy) Volumes

func (in *TiProxy) Volumes() []v1alpha1.Volume

type TiProxyGroup

type TiProxyGroup v1alpha1.TiProxyGroup

func FromTiProxyGroup

func FromTiProxyGroup(g *v1alpha1.TiProxyGroup) *TiProxyGroup

func FromTiProxyGroupSlice

func FromTiProxyGroupSlice(gs []*v1alpha1.TiProxyGroup) []*TiProxyGroup

func (*TiProxyGroup) ClientCASecretName

func (g *TiProxyGroup) ClientCASecretName() string

func (*TiProxyGroup) ClientCertKeyPairSecretName

func (g *TiProxyGroup) ClientCertKeyPairSecretName() string

func (*TiProxyGroup) ClientInsecureSkipTLSVerify

func (g *TiProxyGroup) ClientInsecureSkipTLSVerify() bool

func (*TiProxyGroup) Cluster

func (g *TiProxyGroup) Cluster() string

func (*TiProxyGroup) ClusterCASecretName

func (g *TiProxyGroup) ClusterCASecretName() string

func (*TiProxyGroup) ClusterCertKeyPairSecretName

func (g *TiProxyGroup) ClusterCertKeyPairSecretName() string

func (*TiProxyGroup) Component

func (*TiProxyGroup) Component() string

func (*TiProxyGroup) Conditions

func (g *TiProxyGroup) Conditions() []metav1.Condition

func (*TiProxyGroup) DeepCopyObject

func (g *TiProxyGroup) DeepCopyObject() runtime.Object

func (*TiProxyGroup) Features

func (g *TiProxyGroup) Features() []metav1alpha1.Feature

func (*TiProxyGroup) MinReadySeconds

func (g *TiProxyGroup) MinReadySeconds() int64

func (*TiProxyGroup) ObservedGeneration

func (g *TiProxyGroup) ObservedGeneration() int64

func (*TiProxyGroup) Replicas

func (g *TiProxyGroup) Replicas() int32

func (*TiProxyGroup) SchedulePolicies

func (g *TiProxyGroup) SchedulePolicies() []v1alpha1.SchedulePolicy

func (*TiProxyGroup) SetCluster

func (g *TiProxyGroup) SetCluster(cluster string)

func (*TiProxyGroup) SetConditions

func (g *TiProxyGroup) SetConditions(conds []metav1.Condition)

func (*TiProxyGroup) SetImage

func (g *TiProxyGroup) SetImage(image string)

func (*TiProxyGroup) SetObservedGeneration

func (g *TiProxyGroup) SetObservedGeneration(gen int64)

func (*TiProxyGroup) SetReplicas

func (g *TiProxyGroup) SetReplicas(replicas int32)

func (*TiProxyGroup) SetStatusReplicas

func (g *TiProxyGroup) SetStatusReplicas(replicas, ready, update, current int32)

func (*TiProxyGroup) SetStatusRevision

func (g *TiProxyGroup) SetStatusRevision(update, current string, collisionCount *int32)

func (*TiProxyGroup) SetStatusSelector

func (g *TiProxyGroup) SetStatusSelector(l string)

func (*TiProxyGroup) SetStatusVersion

func (g *TiProxyGroup) SetStatusVersion(version string)

func (*TiProxyGroup) SetTemplateAnnotations

func (g *TiProxyGroup) SetTemplateAnnotations(anno map[string]string)

func (*TiProxyGroup) SetTemplateLabels

func (g *TiProxyGroup) SetTemplateLabels(ls map[string]string)

func (*TiProxyGroup) SetVersion

func (g *TiProxyGroup) SetVersion(version string)

func (*TiProxyGroup) StatusReplicas

func (g *TiProxyGroup) StatusReplicas() (replicas, ready, update, current int32)

func (*TiProxyGroup) StatusRevision

func (g *TiProxyGroup) StatusRevision() (update, current string, collisionCount *int32)

func (*TiProxyGroup) StatusSelector

func (g *TiProxyGroup) StatusSelector() string

func (*TiProxyGroup) StatusVersion

func (g *TiProxyGroup) StatusVersion() string

func (*TiProxyGroup) TemplateAnnotations

func (g *TiProxyGroup) TemplateAnnotations() map[string]string

func (*TiProxyGroup) TemplateLabels

func (g *TiProxyGroup) TemplateLabels() map[string]string

func (*TiProxyGroup) To

func (*TiProxyGroup) Version

func (g *TiProxyGroup) Version() string

type TiProxyGroupTuple

type TiProxyGroupTuple struct{}

func (TiProxyGroupTuple) From

func (TiProxyGroupTuple) FromSlice

func (TiProxyGroupTuple) To

func (TiProxyGroupTuple) ToSlice

type TiProxyTuple

type TiProxyTuple struct{}

func (TiProxyTuple) From

func (TiProxyTuple) FromSlice

func (TiProxyTuple) FromSlice(t []*v1alpha1.TiProxy) []*TiProxy

func (TiProxyTuple) To

func (TiProxyTuple) ToSlice

func (TiProxyTuple) ToSlice(t []*TiProxy) []*v1alpha1.TiProxy

type Tuple

type Tuple[T any, U any] interface {
	From(T) U
	FromSlice([]T) []U
	To(U) T
	ToSlice([]U) []T
}

Directories

Path Synopsis
Package scope is defined to minimize specified generic types when call funcs Normally only one type(e.g.
Package scope is defined to minimize specified generic types when call funcs Normally only one type(e.g.

Jump to

Keyboard shortcuts

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