configloader

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 12 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.

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.

func SaveMetadata added in v0.8.0

func SaveMetadata(path string, m *models.Metadata) error

SaveMetadata writes m to path, choosing JSON or YAML by the file extension. Parent directories are created if missing. Mirrors LoadMetadata's extension contract.

func UpsertTenant added in v0.8.0

func UpsertTenant(m *models.Metadata, entry models.TenantMetadata)

UpsertTenant merges entry into m: if a tenant with the same ID already exists it is replaced in place, otherwise entry is appended.

Types

This section is empty.

Jump to

Keyboard shortcuts

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