baidu

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	CreateRecord(Type, domain, value string) error
	DeleteRecord(Type, domain string) error
	ExistsRecord(Type, domain string) (bool, string, error)
}

Provider enables implementing a custom challenge provider. Present presents the solution to a challenge available to be solved. CleanUp will be called by the challenge if Present ends in a non-error state.

func NewDNSChallengeProviderByName

func NewDNSChallengeProviderByName(name string) (Provider, error)

NewDNSChallengeProviderByName Factory for DNS providers.

type ProviderTimeout

type ProviderTimeout interface {
	Provider
	Timeout() (timeout, interval time.Duration)
}

ProviderTimeout allows for implementing a Provider where an unusually long timeout is required when waiting for an ACME challenge to be satisfied, such as when checking for DNS record propagation. If an implementor of a Provider provides a Timeout method, then the return values of the Timeout method will be used when appropriate by the acme package. The interval value is the time between checks.

The default values used for timeout and interval are 60 seconds and 2 seconds respectively. These are used when no Timeout method is defined for the Provider.

type Type

type Type string

Type is a string that identifies a particular challenge type and version of ACME challenge.

func (Type) String

func (t Type) String() string

Directories

Path Synopsis
Package cloudflare implements a DNS provider for solving the DNS-01 challenge using cloudflare DNS.
Package cloudflare implements a DNS provider for solving the DNS-01 challenge using cloudflare DNS.

Jump to

Keyboard shortcuts

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