utils

package
v1.8.1-crc0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToBool

func ConvertToBool(unk interface{}) (bool, error)

func ConvertToFloat64

func ConvertToFloat64(unk interface{}) (float64, error)

ConvertToFloat64 converts an unknown type to float Based on https://stackoverflow.com/a/20767884/2749989

func ConvertToInt

func ConvertToInt(unk interface{}) (int, error)

func ConvertToInt64

func ConvertToInt64(unk interface{}) (int64, error)

func ConvertToString added in v0.1.10

func ConvertToString(unk interface{}) string

func ConvertToUint32

func ConvertToUint32(unk interface{}) (uint32, error)

func ConvertToUint64

func ConvertToUint64(unk interface{}) (uint64, error)

func DecodeTCPFlags

func DecodeTCPFlags(bitfield uint16) []string

func LoadK8sConfig

func LoadK8sConfig(kubeConfigPath string) (*rest.Config, error)

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