acmeserver

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAuthenticator added in v0.0.38

func RegisterAuthenticator(name Authenticator, l AuthenticatorLoader)

Types

type Authenticator added in v0.0.38

type Authenticator string

func (Authenticator) Load added in v0.0.38

func (u Authenticator) Load(d ConfigDecoder) (a auth.Authenticator, err error)

type AuthenticatorLoader added in v0.0.38

type AuthenticatorLoader interface {
	Load(d ConfigDecoder) (a auth.Authenticator, err error)
}

type ConfigDecoder added in v0.0.38

type ConfigDecoder interface {
	Decode(v interface{}) error
}

type ConfigFiles added in v0.0.38

type ConfigFiles struct {
	DNSType  providers.DNSProviderName
	DNSPath  string
	AuthType Authenticator
	AuthPath string
}

func (ConfigFiles) LoadAuth added in v0.0.38

func (c ConfigFiles) LoadAuth() (p auth.Authenticator, err error)

func (ConfigFiles) LoadProvider added in v0.0.38

func (c ConfigFiles) LoadProvider() (p providers.DNSProvider, err error)

type Server

type Server struct {
	Config   ConfigFiles
	Auth     auth.Authenticator
	Provider providers.DNSProvider
}

func New

func New(config ConfigFiles) *Server

func (*Server) ReloadConfig

func (s *Server) ReloadConfig() (err error)

func (*Server) Serve

func (s *Server) Serve(settings Settings)

func (*Server) ServeTLS added in v0.0.38

func (s *Server) ServeTLS(settings TLSSettings)

type Settings added in v0.0.38

type Settings struct {
	Addr string
}

type TLSSettings added in v0.0.38

type TLSSettings struct {
	Addr     string
	CertFile string
	KeyFile  string
}

Jump to

Keyboard shortcuts

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