componentcfg

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigComponentsPath = "o2/components/"
)

Variables

This section is empty.

Functions

func GetComponentEntryTimestampFromConsul

func GetComponentEntryTimestampFromConsul(key string) (string, string, string)

Method to split component, entry and timestamp when being passed a key from consul e.g. of key o2/components/quality-control/cru-demo/12345678

func GetComponentsMapFromKeysList

func GetComponentsMapFromKeysList(keys []string) map[string]bool

func GetEntriesMapOfComponentFromKeysList

func GetEntriesMapOfComponentFromKeysList(component string, keys []string) map[string]bool

func GetLatestTimestamp

func GetLatestTimestamp(keys []string, component string, entry string) (timestamp string, err error)

Method to return the latest timestamp for a specified component & entry If no keys were passed an error and code exit 3 will be returned

func GetTimestampInFormat

func GetTimestampInFormat(timestamp string, timeFormat string) (string, error)

Method to parse a timestamp in the specified format

func IsInputCompEntryTsValid

func IsInputCompEntryTsValid(input string) bool

func IsInputSingleValidWord

func IsInputSingleValidWord(input string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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