helper

package
v0.0.0-...-6bb069b Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EXPAND = "expand"
	SHRINK = "shrink"
	DEPLOY = "deploy"

	START_SERVICE = "start_service"

	CREATE_VM = "create_vm"
	RETURN_VM = "return_vm"

	REGISTER   = "register"
	UNREGISTER = "unregister"

	KEY_SD_ID   = "service_discovery_id"
	KEY_VM_TYPE = "vm_type_id"
	KEY_TAG     = "tag"
)

Variables

This section is empty.

Functions

func Deploy

func Deploy(poolId int, tag string, maxNum int, opUser string) error

func Expand

func Expand(poolId int, num int, opUser string) error

Expand will expand a service pool by add vms and start service on them.

func Shrink

func Shrink(poolId int, nodeIps []string, opUser string) error

Shrink will shrink a service pool by stopping service on vms and return them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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