appconfigloader

package
v0.1.0-beta.8 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractTargets

func ExtractTargets(appConfig config.AppConfig, format string) (map[string]config.TargetConfig, error)

func FindConfigFile

func FindConfigFile(path string) (string, error)

FindConfigFile finds a haloy config file based on the given path It supports: - Full path to a config file - Directory containing a haloy config file - Relative paths

func Load

func Load(
	ctx context.Context,
	configPath string,
	targets []string,
	allTargets bool,
) (appConfig config.AppConfig, format string, err error)

func LoadRawAppConfig

func LoadRawAppConfig(configPath string) (config.AppConfig, string, error)

func MergeToTarget

func MergeToTarget(appConfig config.AppConfig, targetConfig config.TargetConfig, targetName, format string) (config.TargetConfig, error)

func ResolveSecrets

func ResolveSecrets(ctx context.Context, appConfig config.AppConfig) (config.AppConfig, error)

func TargetsByServer

func TargetsByServer(targets map[string]config.TargetConfig) map[string][]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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