kubernetes

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 10 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.Shard, 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