binlog

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderDrainerCommand

func RenderDrainerCommand(model *DrainerCommandModel) (string, error)

RenderDrainerCommand ...

func RenderDrainerConfig

func RenderDrainerConfig(model *DrainerConfigModel) (string, error)

RenderDrainerConfig ...

Types

type Drainer

type Drainer struct {
	*corev1.ConfigMap
	*corev1.Service
	*appsv1.StatefulSet
}

Drainer components

type DrainerCommandModel

type DrainerCommandModel struct {
	Component string
}

DrainerCommandModel ...

type DrainerConfigModel

type DrainerConfigModel struct {
	PDAddress    string
	DownStreamDB string
	RelayPath    string
}

DrainerConfigModel ...

type Ops

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

Ops knows how to operate binlog

func New

func New(ns, name string) *Ops

New creates binlog ops

func (*Ops) Apply

func (t *Ops) Apply() error

Apply binlog cluster

func (*Ops) Delete

func (t *Ops) Delete() error

Delete binlog cluster

func (*Ops) GetClientNodes

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

GetClientNodes returns client nodes

func (*Ops) GetNodes

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

GetNodes returns all nodes(eg. pods on k8s)

Jump to

Keyboard shortcuts

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