configloader

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package configloader provides utilities for loading configuration overrides and tenancy data for the toolkit.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConsolePropertyRegionalOverrides

func LoadConsolePropertyRegionalOverrides(ctx context.Context, repoPath, realm string) ([]models.ConsolePropertyRegionalOverride, error)

LoadConsolePropertyRegionalOverrides loads console property regional overrides for the given repo path and realm.

func LoadDataset

func LoadDataset(ctx context.Context, repoPath string, env models.Environment, metadata *models.Metadata) (*models.Dataset, error)

LoadDataset loads a Dataset from the given repository path and environment. Now accepts context.Context as the first parameter.

func LoadLimitRegionalOverrides

func LoadLimitRegionalOverrides(ctx context.Context, repoPath, realm string) ([]models.LimitRegionalOverride, error)

LoadLimitRegionalOverrides loads limit regional overrides for the given repo path and realm.

func LoadMetadata added in v0.1.4

func LoadMetadata(path string) (*models.Metadata, error)

LoadMetadata loads tenants from a metadata file (JSON or YAML) and returns a MetadataFile.

func LoadPropertyRegionalOverrides

func LoadPropertyRegionalOverrides(ctx context.Context, repoPath, realm string) ([]models.PropertyRegionalOverride, error)

LoadPropertyRegionalOverrides loads property regional overrides for the given repo path and realm.

func LoadTenancyOverrideGroup

func LoadTenancyOverrideGroup(ctx context.Context, repoPath, realm string, metadata *models.Metadata) (models.TenancyOverrideGroup, error)

LoadTenancyOverrideGroup loads tenants and all tenancy override maps for a given realm.

Types

This section is empty.

Jump to

Keyboard shortcuts

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