Documentation
¶
Index ¶
- Constants
- func APIHost(serviceName string) string
- func Labels(cr *apiv1alpha1.PerconaServerMySQL) map[string]string
- func MatchLabels(cr *apiv1alpha1.PerconaServerMySQL) map[string]string
- func Name(cr *apiv1alpha1.PerconaServerMySQL) string
- func NamespacedName(cr *apiv1alpha1.PerconaServerMySQL) types.NamespacedName
- func Service(cr *apiv1alpha1.PerconaServerMySQL) *corev1.Service
- func ServiceName(cr *apiv1alpha1.PerconaServerMySQL) string
- func StartReplication(ctx context.Context, apiHost, host string, port int32) error
- func StatefulSet(cr *apiv1alpha1.PerconaServerMySQL) *appsv1.StatefulSet
- func StopReplication(ctx context.Context, apiHost, host string, port int32) error
- type Instance
- type InstanceKey
Constants ¶
View Source
const ( DataMountPath = "/var/lib/orchestrator" CredsMountPath = "/etc/orchestrator/orchestrator-users-secret" )
Variables ¶
This section is empty.
Functions ¶
func Labels ¶
func Labels(cr *apiv1alpha1.PerconaServerMySQL) map[string]string
Labels returns labels of orchestrator
func MatchLabels ¶
func MatchLabels(cr *apiv1alpha1.PerconaServerMySQL) map[string]string
func NamespacedName ¶
func NamespacedName(cr *apiv1alpha1.PerconaServerMySQL) types.NamespacedName
func Service ¶
func Service(cr *apiv1alpha1.PerconaServerMySQL) *corev1.Service
func ServiceName ¶
func ServiceName(cr *apiv1alpha1.PerconaServerMySQL) string
func StartReplication ¶
func StatefulSet ¶
func StatefulSet(cr *apiv1alpha1.PerconaServerMySQL) *appsv1.StatefulSet
Types ¶
type Instance ¶
type Instance struct {
Key InstanceKey `json:"Key"`
Alias string `json:"InstanceAlias"`
MasterKey InstanceKey `json:"MasterKey"`
Replicas []InstanceKey `json:"Replicas"`
}
type InstanceKey ¶
Click to show internal directories.
Click to hide internal directories.