utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddResourceAToResourceB

func AddResourceAToResourceB(resA, resB *resource.Quantity)

AddResourceAToResourceB ...

func BytesToGB

func BytesToGB(val int64) float64

BytesToGB converts from bytes(int64) to GB(float64)

func ConvertToFloat64CPU

func ConvertToFloat64CPU(quantity *resource.Quantity) float64

ConvertToFloat64CPU quantity to float64 vCPU

func ConvertToFloat64GB

func ConvertToFloat64GB(quantity *resource.Quantity) float64

ConvertToFloat64GB quantity to float64 GB

func JSONMarshal

func JSONMarshal(obj interface{}) []byte

JSONMarshal marshal object and returns in byte. If there is an error then it return nil.

func PurgeTCP6Data

func PurgeTCP6Data(data string) []string

PurgeTCP6Data handles IP conversion from Hex to Dec and cleans up data to contain only inter pod address information.

func PurgeTCPData

func PurgeTCPData(data string) []string

PurgeTCPData handles IP conversion from Hex to Dec and cleans up data to contain only inter pod address information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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