config

package
v0.0.0-...-c0bec1e Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvalAndRun

func EvalAndRun(runner Runner) error

Types

type CLI

type CLI struct {
	ServerURL string `yaml:"server_url"`
}

type Global

type Global struct {
	ServerConfig Server         `yaml:"server"`
	CLIConfig    CLI            `yaml:"cli"`
	Logging      log.YAMLConfig `yaml:"logging"`
}

func Defaults

func Defaults() *Global

func Load

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

type Runner

type Runner interface {
	Version(debug bool) error
	Server(config *Server) error
}

type Server

type Server struct {
	ConfigPath        string               `yaml:"-"`
	ServerURL         string               `yaml:"server_url"`
	ServerCRT         string               `yaml:"server_crt"`
	ServerKey         string               `yaml:"server_key"`
	StatePath         string               `yaml:"state_path"`
	StoreCacheTTL     string               `yaml:"store_cache_ttl"`
	StoreVersionLimit storage.VersionLimit `yaml:"store_version_limit"`
	ACMEConfig        string               `yaml:"acme_config"`
}

func (*Server) CertStoreURI

func (config *Server) CertStoreURI() string

func (*Server) ResolveConfigFile

func (config *Server) ResolveConfigFile(path string) string

Jump to

Keyboard shortcuts

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