util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// InHostNamespace show if the current namespace is host
	InHostNamespace bool

	// SilenceMode indicate do not running offline jobs
	SilenceMode bool
)
View Source
var (
	// ErrNotFound show the error meaning "not found"
	ErrNotFound = errors.New("not found")
)

Functions

func GetClockTicksPerSecond

func GetClockTicksPerSecond() int64

GetClockTicksPerSecond return clock ticks per second from unix

func MatchIP

func MatchIP(ip string) bool

MatchIP check if the input string is an ip address

func NodeIP

func NodeIP() string

NodeIP return current node ip

func NodeName

func NodeName() string

NodeName return current node name

func SetNodeIP

func SetNodeIP(ip string)

SetNodeIP set current node ip

func SetNodeName

func SetNodeName(name string)

SetNodeName set current node name

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