Documentation ¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the vitess v1alpha2 API group +k8s:deepcopy-gen=package,register +groupName=vitess.io
Package v1alpha2 contains API Schema definitions for the vitess v1alpha2 API group +k8s:deepcopy-gen=package,register +groupName=vitess.io
Index ¶
- Variables
- type CellSelector
- type ClusterConditionType
- type ClusterPhase
- type ConfigProvider
- type Etcd2Lockserver
- type KeyRange
- type LockserverType
- type MySQLContainer
- type ResourceSelector
- type ResourceSelectorOperator
- type TabletContainers
- type TabletCredentials
- type TabletDatastore
- type TabletDatastoreType
- type TabletPhase
- type TabletType
- type VTComponent
- type VTGate
- type VTGateCredentials
- type VTTabletContainer
- type VitessBatchOptions
- type VitessCell
- func (cell *VitessCell) Cluster() *VitessCluster
- func (in *VitessCell) DeepCopy() *VitessCell
- func (in *VitessCell) DeepCopyInto(out *VitessCell)
- func (in *VitessCell) DeepCopyObject() runtime.Object
- func (cell *VitessCell) GetScopedName(extra ...string) string
- func (cell *VitessCell) Lockserver() *VitessLockserver
- func (cell *VitessCell) SetParentCluster(cluster *VitessCluster)
- type VitessCellDefaults
- type VitessCellList
- type VitessCellMySQLProtocol
- type VitessCellParents
- type VitessCellSpec
- type VitessCluster
- func (cluster *VitessCluster) AllTabletsReady() bool
- func (cluster *VitessCluster) Cells() []*VitessCell
- func (in *VitessCluster) DeepCopy() *VitessCluster
- func (in *VitessCluster) DeepCopyInto(out *VitessCluster)
- func (in *VitessCluster) DeepCopyObject() runtime.Object
- func (cluster *VitessCluster) EmbedCellCopy(cell *VitessCell)
- func (cluster *VitessCluster) EmbedKeyspaceCopy(keyspace *VitessKeyspace)
- func (cluster *VitessCluster) GetCellByID(cellID string) *VitessCell
- func (cluster *VitessCluster) GetScopedName(extra ...string) string
- func (cluster *VitessCluster) GetTabletServiceName() string
- func (cluster *VitessCluster) InPhase(p ClusterPhase) bool
- func (cluster *VitessCluster) Keyspaces() []*VitessKeyspace
- func (cluster *VitessCluster) Lockserver() *VitessLockserver
- func (cluster *VitessCluster) Phase() ClusterPhase
- func (cluster *VitessCluster) SetPhase(p ClusterPhase)
- func (cluster *VitessCluster) Shards() []*VitessShard
- func (cluster *VitessCluster) Tablets() []*VitessTablet
- type VitessClusterCondition
- type VitessClusterList
- type VitessClusterSpec
- type VitessClusterStatus
- type VitessKeyspace
- func (keyspace *VitessKeyspace) Cluster() *VitessCluster
- func (in *VitessKeyspace) DeepCopy() *VitessKeyspace
- func (in *VitessKeyspace) DeepCopyInto(out *VitessKeyspace)
- func (in *VitessKeyspace) DeepCopyObject() runtime.Object
- func (keyspace *VitessKeyspace) EmbedShardCopy(shard *VitessShard)
- func (keyspace *VitessKeyspace) GetScopedName(extra ...string) string
- func (keyspace *VitessKeyspace) GetTabletContainers() *TabletContainers
- func (keyspace *VitessKeyspace) SetParentCluster(cluster *VitessCluster)
- func (keyspace *VitessKeyspace) Shards() []*VitessShard
- type VitessKeyspaceList
- type VitessKeyspaceParents
- type VitessKeyspaceSpec
- type VitessLockserver
- type VitessLockserverList
- type VitessLockserverSpec
- type VitessLockserverStatus
- type VitessMySQLAuthType
- type VitessShard
- func (shard *VitessShard) Cluster() *VitessCluster
- func (in *VitessShard) DeepCopy() *VitessShard
- func (in *VitessShard) DeepCopyInto(out *VitessShard)
- func (in *VitessShard) DeepCopyObject() runtime.Object
- func (shard *VitessShard) EmbedTabletCopy(tablet *VitessTablet)
- func (shard *VitessShard) GetScopedName(extra ...string) string
- func (shard *VitessShard) GetTabletContainers() *TabletContainers
- func (shard *VitessShard) Keyspace() *VitessKeyspace
- func (shard *VitessShard) SetParentCluster(cluster *VitessCluster)
- func (shard *VitessShard) SetParentKeyspace(keyspace *VitessKeyspace)
- func (shard *VitessShard) Tablets() []*VitessTablet
- type VitessShardList
- type VitessShardOptions
- type VitessShardParents
- type VitessShardSpec
- type VitessTablet
- func (tablet *VitessTablet) Cell() *VitessCell
- func (tablet *VitessTablet) Cluster() *VitessCluster
- func (in *VitessTablet) DeepCopy() *VitessTablet
- func (in *VitessTablet) DeepCopyInto(out *VitessTablet)
- func (in *VitessTablet) DeepCopyObject() runtime.Object
- func (tablet *VitessTablet) GetMySQLContainer() *MySQLContainer
- func (tablet *VitessTablet) GetReplicas() *int32
- func (tablet *VitessTablet) GetScopedName(extra ...string) string
- func (tablet *VitessTablet) GetStatefulSetName() string
- func (tablet *VitessTablet) GetTabletContainers() *TabletContainers
- func (tablet *VitessTablet) GetTabletID() string
- func (tablet *VitessTablet) GetVTTabletContainer() *VTTabletContainer
- func (tablet *VitessTablet) InPhase(p TabletPhase) bool
- func (tablet *VitessTablet) Keyspace() *VitessKeyspace
- func (tablet *VitessTablet) Lockserver() *VitessLockserver
- func (tablet *VitessTablet) Phase() TabletPhase
- func (tablet *VitessTablet) SetParentCell(cell *VitessCell)
- func (tablet *VitessTablet) SetParentCluster(cluster *VitessCluster)
- func (tablet *VitessTablet) SetParentKeyspace(keyspace *VitessKeyspace)
- func (tablet *VitessTablet) SetParentShard(shard *VitessShard)
- func (tablet *VitessTablet) SetPhase(p TabletPhase)
- func (tablet *VitessTablet) Shard() *VitessShard
- type VitessTabletList
- type VitessTabletParents
- type VitessTabletSpec
- type VitessTabletStatus
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "vitess.io", Version: "v1alpha2"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
This section is empty.
Types ¶
type CellSelector ¶
type CellSelector struct { MatchLabels map[string]string `json:"matchLabels,omitempty"` MatchExpressions []ResourceSelector `json:"matchExpressions,omitempty"` }
func (*CellSelector) DeepCopy ¶
func (in *CellSelector) DeepCopy() *CellSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CellSelector.
func (*CellSelector) DeepCopyInto ¶
func (in *CellSelector) DeepCopyInto(out *CellSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterConditionType ¶
type ClusterConditionType string
const ( VitessClusterConditionAvailable ClusterConditionType = "Available" VitessClusterConditionRecovering ClusterConditionType = "Recovering" VitessClusterConditionScaling ClusterConditionType = "Scaling" VitessClusterConditionUpgrading ClusterConditionType = "Upgrading" )
type ClusterPhase ¶
type ClusterPhase string
const ( ClusterPhaseNone ClusterPhase = "" ClusterPhaseCreating ClusterPhase = "Creating" ClusterPhaseReady ClusterPhase = "Ready" )
type ConfigProvider ¶
type ConfigProvider interface {
GetTabletContainers() *TabletContainers
}
type Etcd2Lockserver ¶
func (*Etcd2Lockserver) DeepCopy ¶
func (in *Etcd2Lockserver) DeepCopy() *Etcd2Lockserver
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Etcd2Lockserver.
func (*Etcd2Lockserver) DeepCopyInto ¶
func (in *Etcd2Lockserver) DeepCopyInto(out *Etcd2Lockserver)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KeyRange ¶
func (*KeyRange) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyRange.
func (*KeyRange) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LockserverType ¶
type LockserverType string
const LockserverTypeDefault LockserverType = LockserverTypeEtcd2
const (
LockserverTypeEtcd2 LockserverType = "etcd2"
)
type MySQLContainer ¶
type MySQLContainer struct { Image string `json:"image"` Resources corev1.ResourceRequirements `json:"resources,omitempty"` DBFlavor string `json:"dbFlavor,omitempty"` }
func (*MySQLContainer) DeepCopy ¶
func (in *MySQLContainer) DeepCopy() *MySQLContainer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLContainer.
func (*MySQLContainer) DeepCopyInto ¶
func (in *MySQLContainer) DeepCopyInto(out *MySQLContainer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSelector ¶
type ResourceSelector struct { // The label key that the selector applies to. Key string `json:"key"` // Represents a key's relationship to a set of values. // Valid operators are In, NotIn, Exists, DoesNotExist Operator ResourceSelectorOperator `json:"operator"` // An array of string values. If the operator is In or NotIn, // the values array must be non-empty. If the operator is Exists or DoesNotExist, // This array is replaced during a strategic merge patch. // +optional Values []string `json:"values,omitempty" protobuf:"bytes,3,rep,name=values"` }
func (*ResourceSelector) DeepCopy ¶
func (in *ResourceSelector) DeepCopy() *ResourceSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSelector.
func (*ResourceSelector) DeepCopyInto ¶
func (in *ResourceSelector) DeepCopyInto(out *ResourceSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSelectorOperator ¶
type ResourceSelectorOperator string
const ( ResourceSelectorOpIn ResourceSelectorOperator = "In" ResourceSelectorOpNotIn ResourceSelectorOperator = "NotIn" ResourceSelectorOpExists ResourceSelectorOperator = "Exists" ResourceSelectorOpDoesNotExist ResourceSelectorOperator = "DoesNotExist" )
type TabletContainers ¶
type TabletContainers struct { DBFlavor string `json:"dbFlavor,omitempty"` MySQL *MySQLContainer `json:"mysql"` VTTablet *VTTabletContainer `json:"vttablet"` }
func (*TabletContainers) DeepCopy ¶
func (in *TabletContainers) DeepCopy() *TabletContainers
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TabletContainers.
func (*TabletContainers) DeepCopyInto ¶
func (in *TabletContainers) DeepCopyInto(out *TabletContainers)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TabletCredentials ¶
type TabletCredentials struct { // SecretRef points a Secret resource which contains the credentials // +optional SecretRef *corev1.SecretReference `json:"secretRef,omitempty" protobuf:"bytes,4,opt,name=secretRef"` }
func (*TabletCredentials) DeepCopy ¶
func (in *TabletCredentials) DeepCopy() *TabletCredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TabletCredentials.
func (*TabletCredentials) DeepCopyInto ¶
func (in *TabletCredentials) DeepCopyInto(out *TabletCredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TabletDatastore ¶
type TabletDatastore struct {
Type TabletDatastoreType `json:"type"`
}
func (*TabletDatastore) DeepCopy ¶
func (in *TabletDatastore) DeepCopy() *TabletDatastore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TabletDatastore.
func (*TabletDatastore) DeepCopyInto ¶
func (in *TabletDatastore) DeepCopyInto(out *TabletDatastore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TabletDatastoreType ¶
type TabletDatastoreType string
const TabletDatastoreTypeDefault TabletDatastoreType = TabletDatastoreTypeLocal
const (
TabletDatastoreTypeLocal TabletDatastoreType = "local"
)
type TabletPhase ¶
type TabletPhase string
const ( TabletPhaseNone TabletPhase = "" TabletPhaseReady TabletPhase = "Ready" )
type TabletType ¶
type TabletType string
const ( TabletTypeMaster TabletType = "master" TabletTypeReplica TabletType = "replica" TabletTypeReadOnly TabletType = "readonly" TabletTypeBackup TabletType = "backup" TabletTypeRestore TabletType = "restore" TabletTypeDrained TabletType = "drained" )
const TabletTypeDefault TabletType = TabletTypeReplica
type VTComponent ¶
type VTComponent struct { Replicas int64 `json:"replicas,omitempty"` ContainerSpec []*corev1.Container `json:"containerSpec,omitempty"` }
func (*VTComponent) DeepCopy ¶
func (in *VTComponent) DeepCopy() *VTComponent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VTComponent.
func (*VTComponent) DeepCopyInto ¶
func (in *VTComponent) DeepCopyInto(out *VTComponent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VTGate ¶
type VTGate struct { // Inline common component struct members VTComponent `json:",inline"` Credentials VTGateCredentials `json:"credentials,omitempty"` Cells []string `json:"cells:` CellSelector *CellSelector `json:"cellSelector,omitempty"` }
func (*VTGate) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VTGate.
func (*VTGate) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VTGateCredentials ¶
type VTGateCredentials struct { // SecretRef points a Secret resource which contains the credentials // +optional SecretRef *corev1.SecretReference `json:"secretRef,omitempty" protobuf:"bytes,4,opt,name=secretRef"` }
func (*VTGateCredentials) DeepCopy ¶
func (in *VTGateCredentials) DeepCopy() *VTGateCredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VTGateCredentials.
func (*VTGateCredentials) DeepCopyInto ¶
func (in *VTGateCredentials) DeepCopyInto(out *VTGateCredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VTTabletContainer ¶
type VTTabletContainer struct { Image string `json:"image"` Resources corev1.ResourceRequirements `json:"resources,omitempty"` DBFlavor string `json:"dbFlavor,omitempty"` }
func (*VTTabletContainer) DeepCopy ¶
func (in *VTTabletContainer) DeepCopy() *VTTabletContainer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VTTabletContainer.
func (*VTTabletContainer) DeepCopyInto ¶
func (in *VTTabletContainer) DeepCopyInto(out *VTTabletContainer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessBatchOptions ¶
type VitessBatchOptions struct {
Count int64 `json:"count"`
}
func (*VitessBatchOptions) DeepCopy ¶
func (in *VitessBatchOptions) DeepCopy() *VitessBatchOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessBatchOptions.
func (*VitessBatchOptions) DeepCopyInto ¶
func (in *VitessBatchOptions) DeepCopyInto(out *VitessBatchOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessCell ¶
type VitessCell struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VitessCellSpec `json:"spec,omitempty"` }
VitessCell is the Schema for the vitesscells API +k8s:openapi-gen=true
func (*VitessCell) Cluster ¶
func (cell *VitessCell) Cluster() *VitessCluster
func (*VitessCell) DeepCopy ¶
func (in *VitessCell) DeepCopy() *VitessCell
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessCell.
func (*VitessCell) DeepCopyInto ¶
func (in *VitessCell) DeepCopyInto(out *VitessCell)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VitessCell) DeepCopyObject ¶
func (in *VitessCell) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VitessCell) GetScopedName ¶
func (cell *VitessCell) GetScopedName(extra ...string) string
func (*VitessCell) Lockserver ¶
func (cell *VitessCell) Lockserver() *VitessLockserver
func (*VitessCell) SetParentCluster ¶
func (cell *VitessCell) SetParentCluster(cluster *VitessCluster)
type VitessCellDefaults ¶
func (*VitessCellDefaults) DeepCopy ¶
func (in *VitessCellDefaults) DeepCopy() *VitessCellDefaults
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessCellDefaults.
func (*VitessCellDefaults) DeepCopyInto ¶
func (in *VitessCellDefaults) DeepCopyInto(out *VitessCellDefaults)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessCellList ¶
type VitessCellList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VitessCell `json:"items"` }
VitessCellList contains a list of VitessCell
func (*VitessCellList) DeepCopy ¶
func (in *VitessCellList) DeepCopy() *VitessCellList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessCellList.
func (*VitessCellList) DeepCopyInto ¶
func (in *VitessCellList) DeepCopyInto(out *VitessCellList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VitessCellList) DeepCopyObject ¶
func (in *VitessCellList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VitessCellMySQLProtocol ¶
type VitessCellMySQLProtocol struct { AuthType VitessMySQLAuthType `json:"authType,omitempty"` Username string `json:"image,omitempty"` PasswordSecretRef *corev1.SecretKeySelector `json:"passwordSecretRef,omitempty"` }
func (*VitessCellMySQLProtocol) DeepCopy ¶
func (in *VitessCellMySQLProtocol) DeepCopy() *VitessCellMySQLProtocol
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessCellMySQLProtocol.
func (*VitessCellMySQLProtocol) DeepCopyInto ¶
func (in *VitessCellMySQLProtocol) DeepCopyInto(out *VitessCellMySQLProtocol)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessCellParents ¶
type VitessCellParents struct {
Cluster *VitessCluster
}
func (*VitessCellParents) DeepCopy ¶
func (in *VitessCellParents) DeepCopy() *VitessCellParents
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessCellParents.
func (*VitessCellParents) DeepCopyInto ¶
func (in *VitessCellParents) DeepCopyInto(out *VitessCellParents)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessCellSpec ¶
type VitessCellSpec struct { Lockserver *VitessLockserver `json:"lockserver"` LockserverRef *corev1.LocalObjectReference `json:"lockserverRef,omitempty"` Defaults *VitessCellDefaults `json:"defaults"` MySQLProtocol *VitessCellMySQLProtocol `json:"mysqlProtocol"` VTGate []VTComponent `json:"vtgate"` VTWorker []VTComponent `json:"vtworker"` VTCtld []VTComponent `json:"vtctld"` Orchestrator []VTComponent `json:"orchestrator"` // contains filtered or unexported fields }
VitessCellSpec defines the desired state of VitessCell
func (*VitessCellSpec) DeepCopy ¶
func (in *VitessCellSpec) DeepCopy() *VitessCellSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessCellSpec.
func (*VitessCellSpec) DeepCopyInto ¶
func (in *VitessCellSpec) DeepCopyInto(out *VitessCellSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessCluster ¶
type VitessCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VitessClusterSpec `json:"spec,omitempty"` Status VitessClusterStatus `json:"status,omitempty"` }
VitessCluster is the Schema for the vitessclusters API +k8s:openapi-gen=true
func (*VitessCluster) AllTabletsReady ¶
func (cluster *VitessCluster) AllTabletsReady() bool
func (*VitessCluster) Cells ¶
func (cluster *VitessCluster) Cells() []*VitessCell
func (*VitessCluster) DeepCopy ¶
func (in *VitessCluster) DeepCopy() *VitessCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessCluster.
func (*VitessCluster) DeepCopyInto ¶
func (in *VitessCluster) DeepCopyInto(out *VitessCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VitessCluster) DeepCopyObject ¶
func (in *VitessCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VitessCluster) EmbedCellCopy ¶
func (cluster *VitessCluster) EmbedCellCopy(cell *VitessCell)
func (*VitessCluster) EmbedKeyspaceCopy ¶
func (cluster *VitessCluster) EmbedKeyspaceCopy(keyspace *VitessKeyspace)
func (*VitessCluster) GetCellByID ¶
func (cluster *VitessCluster) GetCellByID(cellID string) *VitessCell
func (*VitessCluster) GetScopedName ¶
func (cluster *VitessCluster) GetScopedName(extra ...string) string
func (*VitessCluster) GetTabletServiceName ¶
func (cluster *VitessCluster) GetTabletServiceName() string
func (*VitessCluster) InPhase ¶
func (cluster *VitessCluster) InPhase(p ClusterPhase) bool
func (*VitessCluster) Keyspaces ¶
func (cluster *VitessCluster) Keyspaces() []*VitessKeyspace
func (*VitessCluster) Lockserver ¶
func (cluster *VitessCluster) Lockserver() *VitessLockserver
func (*VitessCluster) Phase ¶
func (cluster *VitessCluster) Phase() ClusterPhase
func (*VitessCluster) SetPhase ¶
func (cluster *VitessCluster) SetPhase(p ClusterPhase)
func (*VitessCluster) Shards ¶
func (cluster *VitessCluster) Shards() []*VitessShard
func (*VitessCluster) Tablets ¶
func (cluster *VitessCluster) Tablets() []*VitessTablet
type VitessClusterCondition ¶
type VitessClusterCondition struct { // Type of cluster condition. Type ClusterConditionType `json:"type"` // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // The last time this condition was updated. LastUpdateTime string `json:"lastUpdateTime,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime string `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. Message string `json:"message,omitempty"` }
func (*VitessClusterCondition) DeepCopy ¶
func (in *VitessClusterCondition) DeepCopy() *VitessClusterCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessClusterCondition.
func (*VitessClusterCondition) DeepCopyInto ¶
func (in *VitessClusterCondition) DeepCopyInto(out *VitessClusterCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessClusterList ¶
type VitessClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VitessCluster `json:"items"` }
VitessClusterList contains a list of VitessCluster
func (*VitessClusterList) DeepCopy ¶
func (in *VitessClusterList) DeepCopy() *VitessClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessClusterList.
func (*VitessClusterList) DeepCopyInto ¶
func (in *VitessClusterList) DeepCopyInto(out *VitessClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VitessClusterList) DeepCopyObject ¶
func (in *VitessClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VitessClusterSpec ¶
type VitessClusterSpec struct { Lockserver *VitessLockserver `json:"lockserver,omitempty"` LockserverRef *corev1.LocalObjectReference `json:"lockserverRef,omitempty"` Cells []*VitessCell `json:"cells,omitempty"` CellSelector []ResourceSelector `json:"cellSelector,omitempty"` Keyspaces []*VitessKeyspace `json:"keyspaces,omitempty"` KeyspaceSelector []ResourceSelector `json:"keyspaceSelector,omitempty"` }
VitessClusterSpec defines the desired state of VitessCluster
func (*VitessClusterSpec) DeepCopy ¶
func (in *VitessClusterSpec) DeepCopy() *VitessClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessClusterSpec.
func (*VitessClusterSpec) DeepCopyInto ¶
func (in *VitessClusterSpec) DeepCopyInto(out *VitessClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessClusterStatus ¶
type VitessClusterStatus struct { Phase ClusterPhase `json:"phase,omitempty"` Reason string `json:"reason,omitempty"` Message string `json:"reason,omitempty"` Conditions []VitessClusterCondition `json:"conditions,omitempty"` Lockserver *VitessLockserverStatus `json:"lockserver,omitempty"` }
VitessClusterStatus defines the observed state of VitessCluster
func (*VitessClusterStatus) DeepCopy ¶
func (in *VitessClusterStatus) DeepCopy() *VitessClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessClusterStatus.
func (*VitessClusterStatus) DeepCopyInto ¶
func (in *VitessClusterStatus) DeepCopyInto(out *VitessClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessKeyspace ¶
type VitessKeyspace struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VitessKeyspaceSpec `json:"spec,omitempty"` }
VitessKeyspace is the Schema for the vitesskeyspaces API +k8s:openapi-gen=true
func (*VitessKeyspace) Cluster ¶
func (keyspace *VitessKeyspace) Cluster() *VitessCluster
func (*VitessKeyspace) DeepCopy ¶
func (in *VitessKeyspace) DeepCopy() *VitessKeyspace
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessKeyspace.
func (*VitessKeyspace) DeepCopyInto ¶
func (in *VitessKeyspace) DeepCopyInto(out *VitessKeyspace)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VitessKeyspace) DeepCopyObject ¶
func (in *VitessKeyspace) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VitessKeyspace) EmbedShardCopy ¶
func (keyspace *VitessKeyspace) EmbedShardCopy(shard *VitessShard)
func (*VitessKeyspace) GetScopedName ¶
func (keyspace *VitessKeyspace) GetScopedName(extra ...string) string
func (*VitessKeyspace) GetTabletContainers ¶
func (keyspace *VitessKeyspace) GetTabletContainers() *TabletContainers
GetTabletContainers satisfies ConfigProvider
func (*VitessKeyspace) SetParentCluster ¶
func (keyspace *VitessKeyspace) SetParentCluster(cluster *VitessCluster)
func (*VitessKeyspace) Shards ¶
func (keyspace *VitessKeyspace) Shards() []*VitessShard
type VitessKeyspaceList ¶
type VitessKeyspaceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VitessKeyspace `json:"items"` }
VitessKeyspaceList contains a list of VitessKeyspace
func (*VitessKeyspaceList) DeepCopy ¶
func (in *VitessKeyspaceList) DeepCopy() *VitessKeyspaceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessKeyspaceList.
func (*VitessKeyspaceList) DeepCopyInto ¶
func (in *VitessKeyspaceList) DeepCopyInto(out *VitessKeyspaceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VitessKeyspaceList) DeepCopyObject ¶
func (in *VitessKeyspaceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VitessKeyspaceParents ¶
type VitessKeyspaceParents struct {
Cluster *VitessCluster
}
func (*VitessKeyspaceParents) DeepCopy ¶
func (in *VitessKeyspaceParents) DeepCopy() *VitessKeyspaceParents
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessKeyspaceParents.
func (*VitessKeyspaceParents) DeepCopyInto ¶
func (in *VitessKeyspaceParents) DeepCopyInto(out *VitessKeyspaceParents)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessKeyspaceSpec ¶
type VitessKeyspaceSpec struct { Defaults *VitessShardOptions `json:"defaults"` Shards []*VitessShard `json:"shards"` ShardSelector []ResourceSelector `json:"shardSelector,omitempty"` // contains filtered or unexported fields }
VitessKeyspaceSpec defines the desired state of VitessKeyspace
func (*VitessKeyspaceSpec) DeepCopy ¶
func (in *VitessKeyspaceSpec) DeepCopy() *VitessKeyspaceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessKeyspaceSpec.
func (*VitessKeyspaceSpec) DeepCopyInto ¶
func (in *VitessKeyspaceSpec) DeepCopyInto(out *VitessKeyspaceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessLockserver ¶
type VitessLockserver struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VitessLockserverSpec `json:"spec,omitempty"` Status VitessLockserverStatus `json:"status,omitempty"` }
VitessLockserver is the Schema for the vitesslockservers API +k8s:openapi-gen=true
func (*VitessLockserver) DeepCopy ¶
func (in *VitessLockserver) DeepCopy() *VitessLockserver
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessLockserver.
func (*VitessLockserver) DeepCopyInto ¶
func (in *VitessLockserver) DeepCopyInto(out *VitessLockserver)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VitessLockserver) DeepCopyObject ¶
func (in *VitessLockserver) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VitessLockserverList ¶
type VitessLockserverList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VitessLockserver `json:"items"` }
VitessLockserverList contains a list of VitessLockserver
func (*VitessLockserverList) DeepCopy ¶
func (in *VitessLockserverList) DeepCopy() *VitessLockserverList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessLockserverList.
func (*VitessLockserverList) DeepCopyInto ¶
func (in *VitessLockserverList) DeepCopyInto(out *VitessLockserverList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VitessLockserverList) DeepCopyObject ¶
func (in *VitessLockserverList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VitessLockserverSpec ¶
type VitessLockserverSpec struct { Provision bool `json:"provision,omitempty"` Type LockserverType `json:"type"` Etcd2 *Etcd2Lockserver `json:"etcd2,omitempty"` }
VitessLockserverSpec defines the desired state of VitessLockserver
func (*VitessLockserverSpec) DeepCopy ¶
func (in *VitessLockserverSpec) DeepCopy() *VitessLockserverSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessLockserverSpec.
func (*VitessLockserverSpec) DeepCopyInto ¶
func (in *VitessLockserverSpec) DeepCopyInto(out *VitessLockserverSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessLockserverStatus ¶
type VitessLockserverStatus struct {
State string `json:"state,omitempty"`
}
VitessLockserverStatus defines the observed state of VitessLockserver
func (*VitessLockserverStatus) DeepCopy ¶
func (in *VitessLockserverStatus) DeepCopy() *VitessLockserverStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessLockserverStatus.
func (*VitessLockserverStatus) DeepCopyInto ¶
func (in *VitessLockserverStatus) DeepCopyInto(out *VitessLockserverStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessMySQLAuthType ¶
type VitessMySQLAuthType string
const (
VitessMySQLAuthTypeNone VitessMySQLAuthType = "none"
)
type VitessShard ¶
type VitessShard struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VitessShardSpec `json:"spec,omitempty"` }
VitessShard is the Schema for the vitessshards API +k8s:openapi-gen=true
func (*VitessShard) Cluster ¶
func (shard *VitessShard) Cluster() *VitessCluster
func (*VitessShard) DeepCopy ¶
func (in *VitessShard) DeepCopy() *VitessShard
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessShard.
func (*VitessShard) DeepCopyInto ¶
func (in *VitessShard) DeepCopyInto(out *VitessShard)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VitessShard) DeepCopyObject ¶
func (in *VitessShard) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VitessShard) EmbedTabletCopy ¶
func (shard *VitessShard) EmbedTabletCopy(tablet *VitessTablet)
func (*VitessShard) GetScopedName ¶
func (shard *VitessShard) GetScopedName(extra ...string) string
func (*VitessShard) GetTabletContainers ¶
func (shard *VitessShard) GetTabletContainers() *TabletContainers
GetTabletContainers satisfies ConfigProvider
func (*VitessShard) Keyspace ¶
func (shard *VitessShard) Keyspace() *VitessKeyspace
func (*VitessShard) SetParentCluster ¶
func (shard *VitessShard) SetParentCluster(cluster *VitessCluster)
func (*VitessShard) SetParentKeyspace ¶
func (shard *VitessShard) SetParentKeyspace(keyspace *VitessKeyspace)
func (*VitessShard) Tablets ¶
func (shard *VitessShard) Tablets() []*VitessTablet
type VitessShardList ¶
type VitessShardList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VitessShard `json:"items"` }
VitessShardList contains a list of VitessShard
func (*VitessShardList) DeepCopy ¶
func (in *VitessShardList) DeepCopy() *VitessShardList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessShardList.
func (*VitessShardList) DeepCopyInto ¶
func (in *VitessShardList) DeepCopyInto(out *VitessShardList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VitessShardList) DeepCopyObject ¶
func (in *VitessShardList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VitessShardOptions ¶
type VitessShardOptions struct { Replicas *int32 `json:"replicas"` Batch VitessBatchOptions `json:""batch` Containers *TabletContainers `json:"containers"` Cells []string `json:"cells"` CellSelector []ResourceSelector `json:"cellSelector,omitempty"` }
func (*VitessShardOptions) DeepCopy ¶
func (in *VitessShardOptions) DeepCopy() *VitessShardOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessShardOptions.
func (*VitessShardOptions) DeepCopyInto ¶
func (in *VitessShardOptions) DeepCopyInto(out *VitessShardOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessShardParents ¶
type VitessShardParents struct { Cluster *VitessCluster Keyspace *VitessKeyspace }
func (*VitessShardParents) DeepCopy ¶
func (in *VitessShardParents) DeepCopy() *VitessShardParents
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessShardParents.
func (*VitessShardParents) DeepCopyInto ¶
func (in *VitessShardParents) DeepCopyInto(out *VitessShardParents)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessShardSpec ¶
type VitessShardSpec struct { Defaults *VitessShardOptions `json:"defaults"` KeyRange KeyRange `json:"keyRange,omitempty"` Tablets []*VitessTablet `json:"tablets"` TabletSelector []ResourceSelector `json:"tabletSelector,omitempty"` // contains filtered or unexported fields }
VitessShardSpec defines the desired state of VitessShard
func (*VitessShardSpec) DeepCopy ¶
func (in *VitessShardSpec) DeepCopy() *VitessShardSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessShardSpec.
func (*VitessShardSpec) DeepCopyInto ¶
func (in *VitessShardSpec) DeepCopyInto(out *VitessShardSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessTablet ¶
type VitessTablet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VitessTabletSpec `json:"spec,omitempty"` // contains filtered or unexported fields }
VitessTablet is the Schema for the vitesstablets API +k8s:openapi-gen=true
func (*VitessTablet) Cell ¶
func (tablet *VitessTablet) Cell() *VitessCell
func (*VitessTablet) Cluster ¶
func (tablet *VitessTablet) Cluster() *VitessCluster
func (*VitessTablet) DeepCopy ¶
func (in *VitessTablet) DeepCopy() *VitessTablet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessTablet.
func (*VitessTablet) DeepCopyInto ¶
func (in *VitessTablet) DeepCopyInto(out *VitessTablet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VitessTablet) DeepCopyObject ¶
func (in *VitessTablet) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VitessTablet) GetMySQLContainer ¶
func (tablet *VitessTablet) GetMySQLContainer() *MySQLContainer
func (*VitessTablet) GetReplicas ¶
func (tablet *VitessTablet) GetReplicas() *int32
func (*VitessTablet) GetScopedName ¶
func (tablet *VitessTablet) GetScopedName(extra ...string) string
func (*VitessTablet) GetStatefulSetName ¶
func (tablet *VitessTablet) GetStatefulSetName() string
func (*VitessTablet) GetTabletContainers ¶
func (tablet *VitessTablet) GetTabletContainers() *TabletContainers
GetTabletContainers satisfies ConfigProvider
func (*VitessTablet) GetTabletID ¶
func (tablet *VitessTablet) GetTabletID() string
func (*VitessTablet) GetVTTabletContainer ¶
func (tablet *VitessTablet) GetVTTabletContainer() *VTTabletContainer
func (*VitessTablet) InPhase ¶
func (tablet *VitessTablet) InPhase(p TabletPhase) bool
func (*VitessTablet) Keyspace ¶
func (tablet *VitessTablet) Keyspace() *VitessKeyspace
func (*VitessTablet) Lockserver ¶
func (tablet *VitessTablet) Lockserver() *VitessLockserver
func (*VitessTablet) Phase ¶
func (tablet *VitessTablet) Phase() TabletPhase
func (*VitessTablet) SetParentCell ¶
func (tablet *VitessTablet) SetParentCell(cell *VitessCell)
func (*VitessTablet) SetParentCluster ¶
func (tablet *VitessTablet) SetParentCluster(cluster *VitessCluster)
func (*VitessTablet) SetParentKeyspace ¶
func (tablet *VitessTablet) SetParentKeyspace(keyspace *VitessKeyspace)
func (*VitessTablet) SetParentShard ¶
func (tablet *VitessTablet) SetParentShard(shard *VitessShard)
func (*VitessTablet) SetPhase ¶
func (tablet *VitessTablet) SetPhase(p TabletPhase)
func (*VitessTablet) Shard ¶
func (tablet *VitessTablet) Shard() *VitessShard
type VitessTabletList ¶
type VitessTabletList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VitessTablet `json:"items"` }
VitessTabletList contains a list of VitessTablet
func (*VitessTabletList) DeepCopy ¶
func (in *VitessTabletList) DeepCopy() *VitessTabletList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessTabletList.
func (*VitessTabletList) DeepCopyInto ¶
func (in *VitessTabletList) DeepCopyInto(out *VitessTabletList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VitessTabletList) DeepCopyObject ¶
func (in *VitessTabletList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VitessTabletParents ¶
type VitessTabletParents struct { Cluster *VitessCluster Cell *VitessCell Keyspace *VitessKeyspace Shard *VitessShard }
func (*VitessTabletParents) DeepCopy ¶
func (in *VitessTabletParents) DeepCopy() *VitessTabletParents
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessTabletParents.
func (*VitessTabletParents) DeepCopyInto ¶
func (in *VitessTabletParents) DeepCopyInto(out *VitessTabletParents)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessTabletSpec ¶
type VitessTabletSpec struct { TabletID int64 `json:"tabletID"` Replicas *int32 `json:"replicas"` CellID string `json:"cellID"` Type TabletType `json:"type"` Datastore TabletDatastore `json:"datastore"` Containers *TabletContainers `json:"containers"` VolumeClaim *corev1.PersistentVolumeClaimVolumeSource `json:"volumeclaim, omitempty"` Credentials *TabletCredentials `json:"credentials,omitempty"` // contains filtered or unexported fields }
VitessTabletSpec defines the desired state of VitessTablet
func (*VitessTabletSpec) DeepCopy ¶
func (in *VitessTabletSpec) DeepCopy() *VitessTabletSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VitessTabletSpec.
func (*VitessTabletSpec) DeepCopyInto ¶
func (in *VitessTabletSpec) DeepCopyInto(out *VitessTabletSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VitessTabletStatus ¶
type VitessTabletStatus struct {
Phase TabletPhase `json:"-"`
}
status is for internal use only. If it was exported then it would dirty-up the tablet objects embedded in other resources and would result in mixed status and spec data it is here for use by the VitessCluster object and its controller
Source Files ¶
- doc.go
- interfaces.go
- register.go
- shared_helpers.go
- shared_types.go
- vitesscell_helpers.go
- vitesscell_types.go
- vitesscluster_helpers.go
- vitesscluster_types.go
- vitesskeyspace_helpers.go
- vitesskeyspace_types.go
- vitesslockserver_types.go
- vitessshard_helpers.go
- vitessshard_types.go
- vitesstablet_helpers.go
- vitesstablet_types.go
- zz_generated.deepcopy.go