config

package
v1.0.0-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel   string `mapstructure:"log_level" validate:"omitempty,oneof=debug info warn error"`
	EupfAddr   string `mapstructure:"eupf_addr" validate:"omitempty,url"`
	BackupPath string `mapstructure:"backup_path" validate:"required"`
}

Config defines CLI-related config

func NewConfig

func NewConfig() (*Config, error)

NewConfig initializes config: flags, env, file

func (*Config) UpdateFile

func (c *Config) UpdateFile(params map[string]interface{}) error

UpdateFile updates config file values based on provided map

Jump to

Keyboard shortcuts

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