Documentation
¶
Index ¶
- func CsvToMap(csv []string) (map[string]string, error)
- func CurrentFunctionName() string
- func FormatReportURL(consumerURL string, token string) string
- func GenerateUUID4() string
- func GetLocalContainerID(cgroupfile string) (string, error)
- func GetRandomName(prefix string) string
- func GetStringFromReader(reader io.ReadCloser) (string, error)
- func GetTimestamp() string
- func KeyInMap(s string, m map[string]int) bool
- func RemoveStringFromSlice(s []string, r string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentFunctionName ¶
func CurrentFunctionName() string
CurrentFunctionName returns the scope of the function from which it is invoked
func FormatReportURL ¶
FormatReportURL parses and returns the correct reporting URL
func GenerateUUID4 ¶
func GenerateUUID4() string
GenerateUUID4 generates a UUID Version 4 based on RFC 4122
func GetLocalContainerID ¶
GetLocalContainerID returns the ID of the current local container
func GetRandomName ¶
GetRandomName returns a random name prefixed with the supplied string
func GetStringFromReader ¶
func GetStringFromReader(reader io.ReadCloser) (string, error)
GetStringFromReader converts io.Reader to string
func GetTimestamp ¶
func GetTimestamp() string
GetTimestamp returns the current runtime TODO - need to decide the best format for this
func KeyInMap ¶
KeyInMap checks if the supplied string s, is present as a key in the supplied map[string]int (which is being used as a set)
func RemoveStringFromSlice ¶
RemoveStringFromSlice removes the matching string from a slice of strings
Types ¶
This section is empty.