common

package module
v0.0.0-...-54a4afe Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TimeFormUTC string = "2006-01-02T15:04:05.000000Z"
)

Time Format

Variables

This section is empty.

Functions

func Clone

func Clone(src, dst interface{}) error

Clone Function

func ContainsElement

func ContainsElement(slice interface{}, element interface{}) bool

ContainsElement Function

func GetCommandOutputWithErr

func GetCommandOutputWithErr(cmd string, args []string) (string, error)

GetCommandOutputWithErr Function

func GetCommandOutputWithoutErr

func GetCommandOutputWithoutErr(cmd string, args []string) string

GetCommandOutputWithoutErr Function

func GetDateTimeFromTimestamp

func GetDateTimeFromTimestamp(timestamp float64) string

GetDateTimeFromTimestamp Function

func GetDateTimeNow

func GetDateTimeNow() (int64, string)

GetDateTimeNow Function

func GetEtcdEndPoint

func GetEtcdEndPoint(serviceAccoutName string) string

==================================== // === External and etcd Cluster IP === // ==================================== //

func GetExternalIP

func GetExternalIP(serviceAccountName string) (string, error)

func GetExternalIPAddr

func GetExternalIPAddr() string

GetExternalIPAddr Function

func GetExternalInterface

func GetExternalInterface() string

GetExternalInterface Function

func GetHostName

func GetHostName() string

GetHostName Function

func GetIPAddr

func GetIPAddr(ifname string) string

GetIPAddr Function

func GetUptimeTimestamp

func GetUptimeTimestamp() float64

GetUptimeTimestamp Function

func IsInK8sCluster

func IsInK8sCluster() bool

IsInK8sCluster Function

func IsK8sEnv

func IsK8sEnv() bool

IsK8sEnv Function

func IsK8sLocal

func IsK8sLocal() bool

IsK8sLocal Function

func MatchIdentities

func MatchIdentities(identities []string, superIdentities []string) bool

MatchIdentities Function

func ObjCommaCanBeExpanded

func ObjCommaCanBeExpanded(objptr interface{}) bool

ObjCommaCanBeExpanded Function

func ObjCommaExpand

func ObjCommaExpand(v reflect.Value) []string

ObjCommaExpand Function

func ObjCommaExpandFirstDupOthers

func ObjCommaExpandFirstDupOthers(objptr interface{})

ObjCommaExpandFirstDupOthers Function

func RunCommandAndWaitWithErr

func RunCommandAndWaitWithErr(cmd string, args []string) error

RunCommandAndWaitWithErr Function

Types

This section is empty.

Jump to

Keyboard shortcuts

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