cluster

package
v0.0.0-...-58360b6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 9 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 {
	IncludeTidb bool
	// contains filtered or unexported fields
}

Cluster is the TiKV/TiDB database cluster. Note: Cluster does not implement `core.DB` interface.

func (*Cluster) IsRunning

func (cluster *Cluster) IsRunning(ctx context.Context, node string) bool

IsRunning checks whether the database is running or not

func (*Cluster) Kill

func (cluster *Cluster) Kill(ctx context.Context, node string) error

Kill kills the database

func (*Cluster) Name

func (cluster *Cluster) Name() string

Name returns the unique name for the database

func (*Cluster) SetUp

func (cluster *Cluster) SetUp(ctx context.Context, nodes []string, node string) error

SetUp initializes the database.

func (*Cluster) Start

func (cluster *Cluster) Start(ctx context.Context, node string) error

Start starts the database

func (*Cluster) Stop

func (cluster *Cluster) Stop(ctx context.Context, node string) error

Stop stops the database

func (*Cluster) TearDown

func (cluster *Cluster) TearDown(ctx context.Context, nodes []string, node string) error

TearDown tears down the database.

Jump to

Keyboard shortcuts

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