componentcfg

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: GPL-3.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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