Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SourceKey ¶
type SourceKey struct {
// contains filtered or unexported fields
}
SourceKey represents a source key to look up dimensions objects (currently queries and products). It implements the lookup logic found in https://kb.vshn.ch/appuio-cloud/references/architecture/metering-data-flow.html#_system_idea.
func Parse ¶
Parse parses a source key in the format of "query:zone:tenant:namespace:class" or "query:zone:tenant:namespace".
func (SourceKey) LookupKeys ¶
LookupKeys generates lookup keys for a dimension object in the database. The logic is described here: https://kb.vshn.ch/appuio-cloud/references/architecture/metering-data-flow.html#_system_idea
func (SourceKey) Part ¶ added in v0.17.0
Part returns the i-th part of the source key, or an empty string if no such part exists