util

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstanceIDFromNode

func GetInstanceIDFromNode(node *v1.Node) (string, error)

func GetNodeInstanceType

func GetNodeInstanceType(node *v1.Node) metadata.InstanceTypeEx

func GetStsName

func GetStsName(wep *v1alpha1.WorkloadEndpoint) string

func GetStsPodIndex

func GetStsPodIndex(wep *v1alpha1.WorkloadEndpoint) int

func NewBackoffWithCap

func NewBackoffWithCap(cap time.Duration) *wait.Backoff

func Random

func Random(min, max int) int

Random generates random num in [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