common

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 apistructs.ClusterInfo) (string, error)

func ParseManageType

func ParseManageType(mc *apistructs.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