Documentation ¶
Index ¶
- Constants
- func Clone(src, dst interface{}) error
- func ContainsElement(slice interface{}, element interface{}) bool
- func GetCommandOutputWithErr(cmd string, args []string) (string, error)
- func GetCommandOutputWithoutErr(cmd string, args []string) string
- func GetDateTimeFromTimestamp(timestamp float64) string
- func GetDateTimeNow() (int64, string)
- func GetEtcdEndPoint(serviceAccoutName string) string
- func GetExternalIP(serviceAccountName string) (string, error)
- func GetExternalIPAddr() string
- func GetExternalInterface() string
- func GetHostName() string
- func GetIPAddr(ifname string) string
- func GetUptimeTimestamp() float64
- func IsInK8sCluster() bool
- func IsK8sEnv() bool
- func IsK8sLocal() bool
- func MatchIdentities(identities []string, superIdentities []string) bool
- func ObjCommaCanBeExpanded(objptr interface{}) bool
- func ObjCommaExpand(v reflect.Value) []string
- func ObjCommaExpandFirstDupOthers(objptr interface{})
- func RunCommandAndWaitWithErr(cmd string, args []string) error
Constants ¶
View Source
const (
TimeFormUTC string = "2006-01-02T15:04:05.000000Z"
)
Time Format
Variables ¶
This section is empty.
Functions ¶
func ContainsElement ¶
func ContainsElement(slice interface{}, element interface{}) bool
ContainsElement Function
func GetCommandOutputWithErr ¶
GetCommandOutputWithErr Function
func GetCommandOutputWithoutErr ¶
GetCommandOutputWithoutErr Function
func GetDateTimeFromTimestamp ¶
GetDateTimeFromTimestamp Function
func GetEtcdEndPoint ¶
==================================== // === External and etcd Cluster IP === // ==================================== //
func GetExternalIP ¶
func MatchIdentities ¶
MatchIdentities Function
func ObjCommaCanBeExpanded ¶
func ObjCommaCanBeExpanded(objptr interface{}) bool
ObjCommaCanBeExpanded Function
func ObjCommaExpandFirstDupOthers ¶
func ObjCommaExpandFirstDupOthers(objptr interface{})
ObjCommaExpandFirstDupOthers Function
func RunCommandAndWaitWithErr ¶
RunCommandAndWaitWithErr Function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.