cluster

package
v0.0.0-...-0bc0e99 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	*apiv1.Cluster
}

func New

func New(m *apiv1.Cluster) *Cluster

func (*Cluster) CreatePeers

func (c *Cluster) CreatePeers() string

func (*Cluster) EnsureMysqlConf

func (c *Cluster) EnsureMysqlConf()

func (*Cluster) EnsureVolumeClaimTemplates

func (c *Cluster) EnsureVolumeClaimTemplates(schema *runtime.Scheme) ([]corev1.PersistentVolumeClaim, error)

func (*Cluster) EnsureVolumes

func (c *Cluster) EnsureVolumes() []corev1.Volume

func (*Cluster) GetLabels

func (c *Cluster) GetLabels() labels.Set

GetLabels returns cluster labels

func (*Cluster) GetMySQLVersion

func (c *Cluster) GetMySQLVersion() string

GetMySQLVersion returns the MySQL server version.

func (*Cluster) GetNameForResource

func (c *Cluster) GetNameForResource(name utils.ResourceName) string

GetNameForResource returns the name of a resource from above

func (*Cluster) GetPodHostName

func (c *Cluster) GetPodHostName(p int) string

func (*Cluster) GetSelectorLabels

func (c *Cluster) GetSelectorLabels() labels.Set

GetSelectorLabels returns the labels that will be used as selector

func (*Cluster) Unwrap

func (c *Cluster) Unwrap() *apiv1.Cluster

Unwrap returns the api mysqlcluster object

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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