configuration

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizedDomain

func SanitizedDomain(domain string) (string, error)

Sanitize a domain name.

The return name can safely be used as a filename.

Types

type UserConfig

type UserConfig struct {
	Email                string
	Key                  crypto.PrivateKey
	CADirURL             string
	CADirKeyType         certcrypto.KeyType
	TermsOfServiceAgreed bool
	Domains              []string
	Alias                string
	AuthToken            string
	DisableCP            bool
	DNSResolvers         []string
	DNSTimeout           time.Duration
}

User configuration parsed from env

func NewUserConfigFromEnv

func NewUserConfigFromEnv(storage stores.Stores) (UserConfig, error)

Jump to

Keyboard shortcuts

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