package
1.0.49
Repository: https://github.com/norskhelsenett/ror-api.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
Merge merges two jsons.
NewConfigurationLayer creates a new configuration layer Parameters: name: the name of the layer tier: the tier of the layer order: the order of the layer content: the content of the layer represented as a ConfigLoaderInterface.
NewConfigurationsGenerator creates a new empty ConfigurationsGenerator.
NewFileLoader creates a ConfigLoaderInterface from a file Parameters: parser: the parser to use path: the path to the file WARNING: this function should not be used with user input.
NewFuncLoader creates a ConfigLoaderInterface from a function Parameters: parser: the parser to use function: the function to call - the function must return a byte array and an error.
NewHelsegitlabLoader creates a ConfigLoaderInterface from a git repo Parameters: parser: the parser to use projectid: the id in helsegitlab path: the path to the file branch: the branch to download from.
NewJsonParser creates a new json parser as ConfigParserInterface.
MapStringLoader is a ConfigLoaderInterface that loads a config from a map[string]string Parameters: Parser: the parser to use Data: the string to parse.
NewResourceLoader creates a ConfigLoaderInterface from a resource Parameters: ownerref: the owner reference (apiresourcecontracts.ResourceOwnerReference) resourceName: the name of the resource (string) The resource must have its data represented in spec.data but can be base64 encoded if spec.b64enc is true.
NewSecretLoader creates a ConfigLoaderInterface from a vault secret Parameters: vaultpath: the path in vault vaultkey: the key to use jsonpath: the json path to set "test.auth.username".
NewSecretMapLoader creates a ConfigLoaderInterface from a map of SecretStruct.
StringLoader is a ConfigLoaderInterface that loads a config from a string Parameters: Parser: the parser to use Data: the string to parse.
NewYamlParser creates a new yaml parser as ConfigParserInterface.

# Constants

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
Common structure for configuration loaders.
No description provided by the author
No description provided by the author

# Interfaces

ConfigurationsGenerator is the main interface for generating configurations.
ConfigLayerInterface is the interface for a configuration layer.
ConfigLoaderInterface is the interface for loading a configuration.
ConfigParserInterface is the interface for parsing a configuration to json.

# Type aliases

No description provided by the author