util

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 17

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 added in v1.9.0

func ConcatStrings(ss ...string) string

ConcatStrings use bytes.buffer to concatenate string variable

func GetCurPath

func GetCurPath() string

GetCurPath returns filepath

func GetHostname added in v1.8.0

func GetHostname() string

GetHostname returns a reasonable hostname

func GetLocalIP

func GetLocalIP(hostName string) (string, error)

func SpliceErrors added in v1.3.0

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