sourcekey

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: BSD-3-Clause Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SourceKey

type SourceKey struct {
	Query     string
	Zone      string
	Tenant    string
	Namespace string

	Class string
}

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

func Parse(raw string) (SourceKey, error)

Parse parses a source key in the format of "query:zone:tenant:namespace:class" or "query:zone:tenant:namespace".

func (SourceKey) LookupKeys

func (k SourceKey) LookupKeys() []string

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) String

func (k SourceKey) String() string

String returns the string representation "query:zone:tenant:namespace:class" of the key.

Jump to

Keyboard shortcuts

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