kubernetes

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 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 ShardManager

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

ShardManager manager shards use kubernetes ShardManager

func New

func New(cli kubernetes.Interface,
	stsNamespace string,
	stsSelector string,
	port int,
	log logrus.FieldLogger) *ShardManager

New create a new StatefulSet shards manager

func (*ShardManager) ChangeScale

func (s *ShardManager) ChangeScale(expect int32) error

ChangeScale create or delete Shards according to "expReplicate"

func (*ShardManager) Shards

func (s *ShardManager) Shards() ([]*shard.Group, error)

Shards return current Shards in the cluster

Jump to

Keyboard shortcuts

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