Documentation ¶
Index ¶
- func Contains(slice []string, s string) bool
- func GenerateInstanceName(podName, sandboxID string, podvmNameMax int) string
- func GetCPUAndMemoryFromAnnotation(annotations map[string]string) (int64, int64)
- func GetInstanceTypeFromAnnotation(annotations map[string]string) string
- func GetPodName(annotations map[string]string) string
- func GetPodNamespace(annotations map[string]string) string
- func RedactStruct(struc interface{}, fields ...string) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateInstanceName ¶
func GetCPUAndMemoryFromAnnotation ¶ added in v0.7.0
Method to get vCPU and memory from annotations
func GetInstanceTypeFromAnnotation ¶ added in v0.7.0
Method to get instance type from annotation
func GetPodName ¶
func GetPodNamespace ¶
func RedactStruct ¶
func RedactStruct(struc interface{}, fields ...string) interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.