acmetest

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACMEServer

type ACMEServer struct {
	// contains filtered or unexported fields
}

ACMEServer is a test implementation of the ACME protocol.

func NewACMEServer

func NewACMEServer(t *testing.T, opts ...Option) *ACMEServer

NewACMEServer creates a new ACMEServer for testing.

func (*ACMEServer) URL

func (s *ACMEServer) URL() string

URL returns the URL of the server.

type Option

type Option func(*ACMEServer)

Option is a function that configures the ACMEServer.

func CheckDNS

func CheckDNS(fn func(domain string) (exists bool, value string, err error)) Option

CheckDNS is an option to enable DNS check for DNS-01 challenge.

func ModifyRequest

func ModifyRequest(fn func(r *http.Request)) Option

ModifyRequest is an option to modify the request during HTTP-01 challenge.

Jump to

Keyboard shortcuts

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