configmanager

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() (config.Config, error)

Load loads the config. Error is only returned if the config file exists but could not be loaded. No error is returned if the config file does not exist.

func LoadFrom

func LoadFrom(file string) (config.Config, error)

LoadFrom loads config from file.

func LoadInstance added in v0.7.4

func LoadInstance() (config.Config, error)

LoadInstance is like Load but returns the config of the currently running instance.

func Save

func Save(c config.Config) error

Save saves the config.

func SaveFromFile

func SaveFromFile(file string) error

SaveFromFile loads configuration from file and save as config.

func SaveToFile

func SaveToFile(c config.Config, file string) error

SaveToFile saves configuration to file.

func Teardown

func Teardown() error

Teardown deletes the config.

func ValidateConfig added in v0.5.3

func ValidateConfig(c config.Config) error

ValidateConfig validates config before we use it

Types

This section is empty.

Jump to

Keyboard shortcuts

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