config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvOverrideConfigDir = "SUDOCKER_CONFIG"
	ConfigFileName       = "config.json"
)

Variables

This section is empty.

Functions

func Dir

func Dir() string

配置文件存储的位置

func Load

func Load(configDir string) (*configfile.ConfigFile, error)

func LoadDefaultConfigFile

func LoadDefaultConfigFile(stderr io.Writer) *configfile.ConfigFile

LoadDefaultConfigFile 尝试加载默认配置文件

func LoadFromReader

func LoadFromReader(configData io.Reader) (*configfile.ConfigFile, error)

LoadFromReader 从Reader创建配置文件对象

func Path

func Path(p ...string) (string, error)

func SetDir

func SetDir(dir string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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