config

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNamespace  = errorx.NewNamespace("config")
	NotFoundError = ErrNamespace.NewType("not_found", errorx.NotFound())
)

Functions

func Get

func Get() models.Config

Get returns the loaded configuration.

Returns:

  • The global configuration.

func Init

func Init()

func Initialize

func Initialize(path string) error

Initialize loads the configuration from the specified file.

Parameters:

  • path: The path to the configuration file.

Returns:

  • An error if the configuration cannot be loaded.

func OverrideAlloyConfig

func OverrideAlloyConfig(overrides models.AlloyConfig)

OverrideAlloyConfig updates the Alloy configuration with provided overrides. Empty string values are ignored (not applied). Remote arrays are always replaced (declarative semantics) - pass empty arrays to clear remotes. Note: Passwords are managed via Vault and External Secrets Operator.

func OverrideBlockNodeConfig

func OverrideBlockNodeConfig(overrides models.BlockNodeConfig)

OverrideBlockNodeConfig updates the block node configuration with provided overrides. Empty string values are ignored (not applied).

func OverrideTeleportConfig

func OverrideTeleportConfig(overrides models.TeleportConfig)

OverrideTeleportConfig updates the Teleport configuration with provided overrides. Empty string values are ignored (not applied).

func ServiceAccount

func ServiceAccount() security.ServiceAccount

func Set

func Set(c *models.Config) error

func SetProfile

func SetProfile(profile string)

SetProfile sets the active profile in the global configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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