# Functions

No description provided by the author
No description provided by the author
ConvertMicrosecondsToUnixTime converts the UTC time in microseconds to a time.Time struct (unix time).
CreateTestFileSystem creates a virtual filesystem with 2 layers.The first layer allows to read file from the diskthe second layer allows to modify files on a virtual filesystem.
No description provided by the author
GenerateUuidFromConfigId takes the unique project identifier within an environment, a config id and generates a valid UUID based on provided information.
GenerateUuidFromName generates a fixed UUID from a given configuration name.
No description provided by the author
No description provided by the author
IsUuid tests whether a potential configId is already a UUID.
No description provided by the author
No description provided by the author
NewTemplate creates a new template for the given file.
NewTemplateFromString creates a new template for the given string content.
NewTimelineProvider creates a new TimelineProvider.
PrintError should pretty-print the error using a more user-friendly format.
No description provided by the author
No description provided by the author
SanitizeName removes special characters, limits to max 254 characters in name, no special characters.
SetupLogging is used to initialize the shared file Logger once the necessary setup config is available.
StringTimestampToHumanReadableFormat parses and sanity-checks a unix timestamp as string and returns it as int64 and a human-readable representation of it.
UnmarshalYaml takes the contents of a yaml file and converts it to a map[string]map[string]string The yaml file should have the following format: some-name-1: - list-key-1: "list-entry-1" - list-key-2: "list-entry-2" some-name-2: - list-key-1: "list-entry-1" .
ValidateJson validates whether the json file is correct, by using the internal validation done when unmarshalling to a an object.
No description provided by the author

# Variables

Log is the shared Lumber Logger logging to console and after calling SetupLogging also to file.

# Structs

JsonValidationError is an error which contains more information about where the error appeared in the json file which was validated.

# Interfaces

Template wraps the underlying templating logic and provides a means of setting config values just on one place.
TimelineProvider abstracts away the time.Now() and time.Sleep(time.Duration) functions to make code unit-testable Whenever you need to get the current time, or want to pause the current goroutine (sleep), please consider using this interface.