config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() (string, error)

ConfigDir returns the flowmi configuration directory. It checks $XDG_CONFIG_HOME/flowmi first, falling back to ~/.config/flowmi.

func ConfigFilePath

func ConfigFilePath() (string, error)

ConfigFilePath returns the full path to config.toml.

func CredentialsFilePath

func CredentialsFilePath() (string, error)

CredentialsFilePath returns the full path to credentials.toml.

func LoadConfig

func LoadConfig() (map[string]string, error)

LoadConfig reads key-value pairs from config.toml. Returns an empty map (not an error) if the file does not exist.

func LoadCredentials

func LoadCredentials() (map[string]string, error)

LoadCredentials reads key-value pairs from credentials.toml. Returns an empty map (not an error) if the file does not exist.

func SaveConfig

func SaveConfig(cfg map[string]string) error

SaveConfig writes key-value pairs to config.toml.

func SaveCredentials

func SaveCredentials(creds map[string]string) error

SaveCredentials writes key-value pairs to credentials.toml with 0600 permissions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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