orchestrator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataMountPath = "/var/lib/orchestrator"

	CredsMountPath = "/etc/orchestrator/orchestrator-users-secret"
)

Variables

This section is empty.

Functions

func APIHost

func APIHost(serviceName string) string

func Labels

Labels returns labels of orchestrator

func MatchLabels

func MatchLabels(cr *apiv1alpha1.PerconaServerMySQL) map[string]string

func Name

Name returns component name

func ServiceName

func ServiceName(cr *apiv1alpha1.PerconaServerMySQL) string

func StartReplication

func StartReplication(ctx context.Context, apiHost, host string, port int32) error

func StopReplication

func StopReplication(ctx context.Context, apiHost, host string, port int32) error

Types

type Instance

type Instance struct {
	Key       InstanceKey   `json:"Key"`
	Alias     string        `json:"InstanceAlias"`
	MasterKey InstanceKey   `json:"MasterKey"`
	Replicas  []InstanceKey `json:"Replicas"`
}

func ClusterPrimary

func ClusterPrimary(ctx context.Context, apiHost, clusterHint string) (*Instance, error)

type InstanceKey

type InstanceKey struct {
	Hostname string `json:"Hostname"`
	Port     int32  `json:"Port"`
}

Jump to

Keyboard shortcuts

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