config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultConfigFileName is the default name for the config file
	DefaultConfigFileName = ".unboundCLI.json"

	// Environment variable names
	EnvAPIKey    = "UNBOUND_CLI_API_KEY"
	EnvAPISecret = "UNBOUND_CLI_API_SECRET"
	EnvBaseURL   = "UNBOUND_CLI_BASE_URL"
	EnvInsecure  = "UNBOUND_CLI_INSECURE"
)

Variables

This section is empty.

Functions

func GetDefaultConfigPath

func GetDefaultConfigPath() (string, error)

GetDefaultConfigPath returns the default path for the config file

func LoadConfig

func LoadConfig() (api.Config, error)

LoadConfig loads the API configuration from environment variables, Viper, or a file

func SaveConfig

func SaveConfig(config api.Config, filePath string) error

SaveConfig saves the API configuration to a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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