convertors

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package convertors provides data size convert functinality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToStr

func BytesToStr(i int64) string

BytesToStr converts integer of bytes to string.

func MilliCPUToStr

func MilliCPUToStr(i int32) string

MilliCPUToStr converts integer of milli CPU to string.

func StrToBytes

func StrToBytes(memory string) (uint64, error)

StrToBytes converts string containing memory as string to number of bytes the string represents.

func StrToMilliCPU

func StrToMilliCPU(cpu string) (uint64, error)

StrToMilliCPU converts CPU as a string representation to millicpus represented as an integer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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