dm

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DM

type DM struct {
	SvcMaster *corev1.Service
	SvcWorker *corev1.Service
	StsMaster *appsv1.StatefulSet
	StsWorker *appsv1.StatefulSet
}

DM represents a DM cluster in K8s.

type Ops

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

Ops knows how to operate DM cluster on K8s.

func New

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

New creates a new DM Ops.

func (*Ops) Apply

func (o *Ops) Apply() error

Apply DM cluster.

func (*Ops) Delete

func (o *Ops) Delete() error

Delete DM cluster.

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 DM (DM-master & DM-worker) nodes.

Jump to

Keyboard shortcuts

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