Documentation ¶
Index ¶
- Constants
- Variables
- func GetComponentsMapFromKeysList(keys []string) map[string]bool
- func GetEntriesMapOfComponentFromKeysList(component string, runtype apricotpb.RunType, rolename string, keys []string) map[string]bool
- func GetLatestTimestamp(keys []string, p *Query) (timestamp string, err error)
- func GetTimestampInFormat(timestamp string, timeFormat string) (string, error)
- func IsInputSingleValidWord(input string) bool
- func IsStringValidEntriesQueryPath(input string) bool
- func IsStringValidQueryParameters(input string) bool
- func IsStringValidQueryPathWithOptionalTimestamp(input string) bool
- type EntriesQuery
- type Query
- type QueryParameters
Constants ¶
View Source
const ( SEPARATOR = "/" SEPARATOR_RUNE = '/' )
View Source
const ( FALLBACK_RUNTYPE = apricotpb.RunType_ANY FALLBACK_ROLENAME = "any" )
View Source
const (
ConfigComponentsPath = "o2/components/"
)
Variables ¶
View Source
var (
E_BAD_KEY = errors.New("bad component configuration key format")
)
Functions ¶
func GetComponentsMapFromKeysList ¶
keys must be a slice containing all the full keys in /o2/components
func GetLatestTimestamp ¶
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 ¶
Method to parse a timestamp in the specified format
func IsInputSingleValidWord ¶
Checks whether the input string is a valid Consul path element on its own
func IsStringValidEntriesQueryPath ¶ added in v0.19.90
func IsStringValidQueryParameters ¶ added in v1.7.0
func IsStringValidQueryPathWithOptionalTimestamp ¶ added in v0.19.90
Types ¶
type EntriesQuery ¶ added in v0.19.90
func NewEntriesQuery ¶ added in v0.19.90
func NewEntriesQuery(path string) (p *EntriesQuery, err error)
type Query ¶ added in v0.19.90
type Query struct { Component string RunType apricotpb.RunType RoleName string EntryKey string Timestamp string }
func (*Query) AbsoluteRaw ¶ added in v0.19.90
func (*Query) AbsoluteWithoutTimestamp ¶ added in v0.19.90
func (*Query) WithFallbackRoleName ¶ added in v0.50.0
func (*Query) WithFallbackRunType ¶ added in v0.50.0
func (*Query) WithoutTimestamp ¶ added in v0.19.90
type QueryParameters ¶ added in v1.7.0
func NewQueryParameters ¶ added in v1.7.0
func NewQueryParameters(parameters string) (p *QueryParameters, err error)
Click to show internal directories.
Click to hide internal directories.