Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertToMap(obj interface{}) (map[string]interface{}, error)
- func GetInt64Len(a int64) int
- func GetPercent(a, b float64) string
- func ResetNumberBase(a, b float64) (float64, float64)
- func ToDataList(object []types.APIObject) []data.Object
- func Transfer(a, b interface{}) error
Constants ¶
View Source
const (
Default = "Default"
)
Variables ¶
View Source
var ( // cmp bashboard table CMPDashboardChangePageNoOperationKey cptype.OperationKey = "changePageNo" CMPDashboardChangePageSizeOperationKey cptype.OperationKey = "changePageSize" CMPDashboardSortByColumnOperationKey cptype.OperationKey = "changeSort" // cmp bashboard clusterFilter CMPDashboardFilterOperationKey cptype.OperationKey = "filter" // Freeze Button CMPDashboardUncordonNode cptype.OperationKey = "uncordon" CMPDashboardCordonNode cptype.OperationKey = "cordon" CMPDashboardBatchSubmit cptype.OperationKey = "batchSubmit" CMPDashboardTableTabs cptype.OperationKey = "changeTab" CMPDashboardSubmit cptype.OperationKey = "submit" CMPDashboardRemoveLabel cptype.OperationKey = "deleteLabel" )
View Source
var ( NodeNotFoundErr = errors.New("node not found") ClusterNotFoundErr = errors.New("cluster not found") NothingToBeDoneErr = errors.New("nothing to be done") TypeNotAvailableErr = errors.New("type not available") ResourceNotFoundErr = errors.New("resource type not available") //util error PtrRequiredErr = errors.New("ptr is required") )
Functions ¶
func ConvertToMap ¶
ConvertToMap transfer any struct to map
func GetInt64Len ¶
func GetPercent ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.