util

package
v1.19.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(name string, arg []string) (string, error)

Command executes command and returns output

func ConcatStrings

func ConcatStrings(ss ...string) string

ConcatStrings use bytes.buffer to concatenate string variable

func GetCurPath

func GetCurPath() string

GetCurPath returns filepath

func GetHostname

func GetHostname() string

GetHostname returns a reasonable hostname

func GetLocalIP

func GetLocalIP(hostName string) (string, error)

func GetResourceID

func GetResourceID(namespace, name string) string

GetResourceID return resource ID

func SpliceErrors

func SpliceErrors(errors []error) string

func ValidateNodeIP

func ValidateNodeIP(nodeIP net.IP) error

ValidateNodeIP validates given node IP belongs to the current host

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