utils

package
v0.0.0-...-c2c0533 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeFormat       = "2006-01-02T15:04:05Z"
	DefaultTimeZone  = "Asia/Shanghai"
	DefaultNamespace = "crane-system"
)

Variables

This section is empty.

Functions

func GetLocalTime

func GetLocalTime() string

func GetLocation

func GetLocation() *time.Location

func GetSystemNamespace

func GetSystemNamespace() string

func IsDaemonsetPod

func IsDaemonsetPod(pod *corev1.Pod) bool

IsDaemonsetPod judges if this pod belongs to one daemonset workload.

func NormalizeScore

func NormalizeScore(value, max, min int64) int64

NormalizaScore nornalize the score in range [min, max]

Types

This section is empty.

Jump to

Keyboard shortcuts

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