util

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 10 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 GetCurPath

func GetCurPath() string

GetCurPath returns filepath

func GetLocalIP

func GetLocalIP(hostName string) (string, error)

func GetPodSandboxImage

func GetPodSandboxImage() string

GetPodSandboxImage return snadbox image name based on arch, default image is for amd64.

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