vacfg

package
v0.0.0-...-0c658f2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	cmd.ServiceConfig
	UserAgent string

	IssuerDomain string

	// DNSTries is the number of times to try a DNS query (that has a temporary error)
	// before giving up. May be short-circuited by deadlines. A zero value
	// will be turned into 1.
	DNSTries    int
	DNSProvider *cmd.DNSProvider `validate:"required_without=DNSStaticResolvers"`
	// DNSStaticResolvers is a list of DNS resolvers. Each entry must
	// be a host or IP and port separated by a colon. IPv6 addresses
	// must be enclosed in square brackets.
	DNSStaticResolvers        []string        `validate:"required_without=DNSProvider,dive,hostname_port"`
	DNSTimeout                config.Duration `validate:"required"`
	DNSAllowLoopbackAddresses bool

	AccountURIPrefixes []string `validate:"min=1,dive,required,url"`
}

Common contains all of the shared fields for a VA and a Remote VA (RVA).

func (*Common) SetDefaultsAndValidate

func (c *Common) SetDefaultsAndValidate(grpcAddr, debugAddr *string) error

SetDefaultsAndValidate performs some basic sanity checks on fields stored in the Common struct, defaulting them to a sane value when necessary. This method does mutate the Common struct.

Jump to

Keyboard shortcuts

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