Documentation
¶
Index ¶
- func CreateMergePatch(original, new interface{}) ([]byte, error)
- func GetGangNameByPod(pod *v1.Pod) string
- func GetId(namespace, name string) string
- func IsPodNeedGang(pod *v1.Pod) bool
- func ParsePgTimeoutSeconds(timeoutSeconds int32) (time.Duration, error)
- func StringToGangGroupSlice(s string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMergePatch ¶
CreateMergePatch return patch generated from original and new interfaces
func GetGangNameByPod ¶
func IsPodNeedGang ¶
func ParsePgTimeoutSeconds ¶
func StringToGangGroupSlice ¶
StringToGangGroupSlice Parse gang group's annotation like :"["nsA/gangA","nsB/gangB"]" => goLang slice : []string{"nsA/gangA"."nsB/gangB"}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.