util

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v0.7.0

func Contains(slice []string, s string) bool

Method to check if a string exists in a slice

func GenerateInstanceName

func GenerateInstanceName(podName, sandboxID string, podvmNameMax int) string

func GetCPUAndMemoryFromAnnotation added in v0.7.0

func GetCPUAndMemoryFromAnnotation(annotations map[string]string) (int64, int64)

Method to get vCPU and memory from annotations

func GetInstanceTypeFromAnnotation added in v0.7.0

func GetInstanceTypeFromAnnotation(annotations map[string]string) string

Method to get instance type from annotation

func GetPodName

func GetPodName(annotations map[string]string) string

func GetPodNamespace

func GetPodNamespace(annotations map[string]string) string

func RedactStruct

func RedactStruct(struc interface{}, fields ...string) interface{}

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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