Documentation ¶
Index ¶
- Variables
- type DatabaseServerProtocol
- type DatabaseSource
- type Pod
- type QoSClassType
- type SQLTrafficQoS
- func (in *SQLTrafficQoS) DeepCopy() *SQLTrafficQoS
- func (in *SQLTrafficQoS) DeepCopyInto(out *SQLTrafficQoS)
- func (in *SQLTrafficQoS) DeepCopyObject() runtime.Object
- func (r *SQLTrafficQoS) Default()
- func (r *SQLTrafficQoS) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *SQLTrafficQoS) ValidateCreate() error
- func (r *SQLTrafficQoS) ValidateDelete() error
- func (r *SQLTrafficQoS) ValidateUpdate(old runtime.Object) error
- type SQLTrafficQoSList
- type SQLTrafficQoSSpec
- type SQLTrafficQoSStatus
- type TrafficQoSGroup
- type TrafficQoSStrategy
- type VirtualDatabase
- func (in *VirtualDatabase) DeepCopy() *VirtualDatabase
- func (in *VirtualDatabase) DeepCopyInto(out *VirtualDatabase)
- func (in *VirtualDatabase) DeepCopyObject() runtime.Object
- func (r *VirtualDatabase) Default()
- func (r *VirtualDatabase) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *VirtualDatabase) ValidateCreate() error
- func (r *VirtualDatabase) ValidateDelete() error
- func (r *VirtualDatabase) ValidateUpdate(old runtime.Object) error
- type VirtualDatabaseList
- type VirtualDatabaseServer
- type VirtualDatabaseSpec
- type VirtualDatabaseStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "database-mesh.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type DatabaseServerProtocol ¶
type DatabaseServerProtocol string
const (
DatabaseServerProtocolMySQL DatabaseServerProtocol = "MySQL"
)
type DatabaseSource ¶
type DatabaseSource struct { Server string `json:"server"` Port int `json:"port"` Credential string `json:"credentialName"` }
func (*DatabaseSource) DeepCopy ¶
func (in *DatabaseSource) DeepCopy() *DatabaseSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseSource.
func (*DatabaseSource) DeepCopyInto ¶
func (in *DatabaseSource) DeepCopyInto(out *DatabaseSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QoSClassType ¶
type QoSClassType string
const ( QoSClassGuaranteed QoSClassType = "Guaranteed" QoSClassBurstable QoSClassType = "Burstable" QoSClassBestEffort QoSClassType = "BestEffort" )
type SQLTrafficQoS ¶
type SQLTrafficQoS struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SQLTrafficQoSSpec `json:"spec,omitempty"` Status SQLTrafficQoSStatus `json:"status,omitempty"` }
SQLTrafficQoS is the Schema for the sqltrafficqos API
func (*SQLTrafficQoS) DeepCopy ¶
func (in *SQLTrafficQoS) DeepCopy() *SQLTrafficQoS
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SQLTrafficQoS.
func (*SQLTrafficQoS) DeepCopyInto ¶
func (in *SQLTrafficQoS) DeepCopyInto(out *SQLTrafficQoS)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SQLTrafficQoS) DeepCopyObject ¶
func (in *SQLTrafficQoS) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SQLTrafficQoS) Default ¶
func (r *SQLTrafficQoS) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*SQLTrafficQoS) SetupWebhookWithManager ¶
func (r *SQLTrafficQoS) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*SQLTrafficQoS) ValidateCreate ¶
func (r *SQLTrafficQoS) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*SQLTrafficQoS) ValidateDelete ¶
func (r *SQLTrafficQoS) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*SQLTrafficQoS) ValidateUpdate ¶
func (r *SQLTrafficQoS) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type SQLTrafficQoSList ¶
type SQLTrafficQoSList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SQLTrafficQoS `json:"items"` }
SQLTrafficQoSList contains a list of SQLTrafficQoS
func (*SQLTrafficQoSList) DeepCopy ¶
func (in *SQLTrafficQoSList) DeepCopy() *SQLTrafficQoSList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SQLTrafficQoSList.
func (*SQLTrafficQoSList) DeepCopyInto ¶
func (in *SQLTrafficQoSList) DeepCopyInto(out *SQLTrafficQoSList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SQLTrafficQoSList) DeepCopyObject ¶
func (in *SQLTrafficQoSList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SQLTrafficQoSSpec ¶
type SQLTrafficQoSSpec struct { // Foo is an example field of SQLTrafficQoS. Edit sqltrafficqos_types.go to remove/update NetworkDevice string `json:"networkDevice"` QoSClass QoSClassType `json:"qosClass,omitempty"` Strategy TrafficQoSStrategy `json:"strategy",omitempty` Groups []TrafficQoSGroup `json:"groups"` }
SQLTrafficQoSSpec defines the desired state of SQLTrafficQoS
func (*SQLTrafficQoSSpec) DeepCopy ¶
func (in *SQLTrafficQoSSpec) DeepCopy() *SQLTrafficQoSSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SQLTrafficQoSSpec.
func (*SQLTrafficQoSSpec) DeepCopyInto ¶
func (in *SQLTrafficQoSSpec) DeepCopyInto(out *SQLTrafficQoSSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SQLTrafficQoSStatus ¶
type SQLTrafficQoSStatus struct { }
SQLTrafficQoSStatus defines the observed state of SQLTrafficQoS
func (*SQLTrafficQoSStatus) DeepCopy ¶
func (in *SQLTrafficQoSStatus) DeepCopy() *SQLTrafficQoSStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SQLTrafficQoSStatus.
func (*SQLTrafficQoSStatus) DeepCopyInto ¶
func (in *SQLTrafficQoSStatus) DeepCopyInto(out *SQLTrafficQoSStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TrafficQoSGroup ¶
func (*TrafficQoSGroup) DeepCopy ¶
func (in *TrafficQoSGroup) DeepCopy() *TrafficQoSGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficQoSGroup.
func (*TrafficQoSGroup) DeepCopyInto ¶
func (in *TrafficQoSGroup) DeepCopyInto(out *TrafficQoSGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TrafficQoSStrategy ¶
type TrafficQoSStrategy string
const ( TrafficQoSStrategyDynamic TrafficQoSStrategy = "Dynamic" TrafficQoSStrategyPreDefined TrafficQoSStrategy = "PreDefined" )
type VirtualDatabase ¶
type VirtualDatabase struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VirtualDatabaseSpec `json:"spec,omitempty"` Status VirtualDatabaseStatus `json:"status,omitempty"` }
VirtualDatabase is the Schema for the virtualdatabases API
func (*VirtualDatabase) DeepCopy ¶
func (in *VirtualDatabase) DeepCopy() *VirtualDatabase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualDatabase.
func (*VirtualDatabase) DeepCopyInto ¶
func (in *VirtualDatabase) DeepCopyInto(out *VirtualDatabase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualDatabase) DeepCopyObject ¶
func (in *VirtualDatabase) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VirtualDatabase) Default ¶
func (r *VirtualDatabase) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*VirtualDatabase) SetupWebhookWithManager ¶
func (r *VirtualDatabase) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*VirtualDatabase) ValidateCreate ¶
func (r *VirtualDatabase) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*VirtualDatabase) ValidateDelete ¶
func (r *VirtualDatabase) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*VirtualDatabase) ValidateUpdate ¶
func (r *VirtualDatabase) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type VirtualDatabaseList ¶
type VirtualDatabaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VirtualDatabase `json:"items"` }
VirtualDatabaseList contains a list of VirtualDatabase
func (*VirtualDatabaseList) DeepCopy ¶
func (in *VirtualDatabaseList) DeepCopy() *VirtualDatabaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualDatabaseList.
func (*VirtualDatabaseList) DeepCopyInto ¶
func (in *VirtualDatabaseList) DeepCopyInto(out *VirtualDatabaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualDatabaseList) DeepCopyObject ¶
func (in *VirtualDatabaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualDatabaseServer ¶
type VirtualDatabaseServer struct { Port int `json:"port"` Protocol DatabaseServerProtocol `json:"protocol"` Credential string `json:"credentialName"` Backends []DatabaseSource `json:"backends"` }
func (*VirtualDatabaseServer) DeepCopy ¶
func (in *VirtualDatabaseServer) DeepCopy() *VirtualDatabaseServer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualDatabaseServer.
func (*VirtualDatabaseServer) DeepCopyInto ¶
func (in *VirtualDatabaseServer) DeepCopyInto(out *VirtualDatabaseServer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualDatabaseSpec ¶
type VirtualDatabaseSpec struct { // Foo is an example field of VirtualDatabase. Edit virtualdatabase_types.go to remove/update Selector map[string]string `json:"selector"` Server VirtualDatabaseServer `json:"server"` QoS string `json:"qos"` Bandwidth string `json:"bandwidth` }
VirtualDatabaseSpec defines the desired state of VirtualDatabase
func (*VirtualDatabaseSpec) DeepCopy ¶
func (in *VirtualDatabaseSpec) DeepCopy() *VirtualDatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualDatabaseSpec.
func (*VirtualDatabaseSpec) DeepCopyInto ¶
func (in *VirtualDatabaseSpec) DeepCopyInto(out *VirtualDatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualDatabaseStatus ¶
type VirtualDatabaseStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file PodList []string `json:"podList"` ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
VirtualDatabaseStatus defines the observed state of VirtualDatabase
func (*VirtualDatabaseStatus) DeepCopy ¶
func (in *VirtualDatabaseStatus) DeepCopy() *VirtualDatabaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualDatabaseStatus.
func (*VirtualDatabaseStatus) DeepCopyInto ¶
func (in *VirtualDatabaseStatus) DeepCopyInto(out *VirtualDatabaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.