utils

package
v4.2.297+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile added in v0.9.1

func CreateFile(filename string) error

func DeleteFile added in v0.9.1

func DeleteFile(filename string) error

func FileExists added in v0.9.1

func FileExists(filename string) bool

func GenerateUUID added in v0.9.1

func GenerateUUID() string

func GetRunningNamespace added in v0.3.8

func GetRunningNamespace() string

GetRunningNamespace retrieves value from env NAMESPACE_NAME

func GetRunningPodName added in v0.3.49

func GetRunningPodName() string

GetRunningPodName retrieves value from env POD_NAME

func InterfaceToString

func InterfaceToString(data interface{}) string

InterfaceToString encodes interface to string

func IsEmailValid added in v0.9.1

func IsEmailValid(email string) bool

func RawdataRead2Write added in v0.3.49

func RawdataRead2Write(readRawdata []*Common.ReadRawdata) []*Common.WriteRawdata

func ReadFile added in v0.9.1

func ReadFile(filename string) ([]string, error)

func StringToByteArray added in v0.9.1

func StringToByteArray(str string) []byte

func WriteFile added in v0.9.1

func WriteFile(filename string, lines []string) error

func WriteFileWithAppend added in v0.9.1

func WriteFileWithAppend(filename string, lines []string) error

Types

This section is empty.

Directories

Path Synopsis
datahub
pod
Package log provides the canonical logging functionality used by Go-based Alameda components.
Package log provides the canonical logging functionality used by Go-based Alameda components.

Jump to

Keyboard shortcuts

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