mysql

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQL

type MySQL struct {
	Sts *appsv1.StatefulSet
	Svc *corev1.Service
}

MySQL represents a MySQL instance in K8s.

func (*MySQL) DSN

func (m *MySQL) DSN() string

DSN returns a DSN for this MySQL instance.

type Ops

type Ops struct {
	// contains filtered or unexported fields
}

Ops knows how to operate MySQL on k8s

func New

func New(namespace, name string, conf fixture.MySQLConfig) *Ops

New creates a new MySQL Ops.

func (*Ops) Apply

func (o *Ops) Apply() error

Apply MySQL instance.

func (*Ops) Delete

func (o *Ops) Delete() error

Delete MySQL instance.

func (*Ops) GetClientNodes

func (o *Ops) GetClientNodes() ([]cluster.ClientNode, error)

GetClientNodes returns the client nodes.

func (*Ops) GetNodes

func (o *Ops) GetNodes() ([]cluster.Node, error)

GetNodes returns MySQL nodes.

Jump to

Keyboard shortcuts

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