config

package
v0.0.0-...-10e2fbd Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolvePath

func ResolvePath(basePath string, path string) string

Types

type CLIConfig

type CLIConfig struct {
	BasePath  string `yaml:"-"`
	ServerURL string `yaml:"server_url"`
}

type Config

type Config struct {
	Debug   bool         `yaml:"debug"`
	Verbose bool         `yaml:"verbose"`
	ANSI    bool         `yaml:"ansi"`
	Server  ServerConfig `yaml:"server"`
	CLI     CLIConfig    `yaml:"cli"`
}

func Defaults

func Defaults() *Config

func Load

func Load(path string) (*Config, error)

type ServerConfig

type ServerConfig struct {
	BasePath   string `yaml:"-"`
	ServerURL  string `yaml:"server_url"`
	StorePath  string `yaml:"store_path"`
	StatePath  string `yaml:"state_path"`
	ACMEConfig string `yaml:"acme_config"`
}

func (*ServerConfig) ResolveACMEConfig

func (config *ServerConfig) ResolveACMEConfig() string

func (*ServerConfig) ResolveStatePath

func (config *ServerConfig) ResolveStatePath() string

func (*ServerConfig) ResolveStorePath

func (config *ServerConfig) ResolveStorePath() string

Jump to

Keyboard shortcuts

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