common

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CMPClusterList cptype.OperationKey = "list"

	StatusPending         = "pending"
	StatusOnline          = "online"
	StatusOffline         = "offline"
	StatusInitializing    = "initializing"
	StatusInitializeError = "initialize error"
	StatusUnknown         = "unknown"

	Success    = "success"
	Error      = "error"
	Default    = "default"
	Processing = "processing"
	Warning    = "warning"
)

Variables

View Source
var (
	PtrRequiredErr     = errors.New("pointer required")
	NothingToBeDoneErr = errors.New("nothing to be done")
)

Functions

func GetClusterStatus

func GetClusterStatus(kc *k8sclient.K8sClient, meta *clusterpb.ClusterInfo) (string, error)

func ParseManageType

func ParseManageType(mc *clusterpb.ManageConfig) string

func RescaleBinary

func RescaleBinary(num float64) string

func Transfer

func Transfer(a, b interface{}) error

Transfer transfer a to b with json, kind of b must be pointer

Types

This section is empty.

Jump to

Keyboard shortcuts

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