sintlsprovider

package
v0.0.0-...-b90a4bf Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package httpreq implements a DNS provider for solving the DNS-01 challenge through a HTTP server.

Index

Constants

This section is empty.

Variables

View Source
var UserAgent string

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint           *url.URL
	Username           string
	Password           string
	TargetA            string
	TargetAAAA         string
	TargetCNAME        string
	TargetMX           string
	PropagationTimeout time.Duration
	PollingInterval    time.Duration
	HTTPClient         *http.Client
}

Config is used to configure the creation of the Provider

func NewDefaultConfig

func NewDefaultConfig() *Config

NewDefaultConfig returns a default configuration for the Provider

type Provider

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

Provider describes a provider for acme-proxy

func NewProvider

func NewProvider(ctx *cli.Context) (*Provider, error)

NewProvider returns a Provider instance.

func NewProviderConfig

func NewProviderConfig(config *Config) (*Provider, error)

NewProviderConfig return a Provider .

func (*Provider) CleanUp

func (d *Provider) CleanUp(domain, token, keyAuth string) error

CleanUp removes the TXT record matching the specified parameters

func (*Provider) GetTargetA

func (d *Provider) GetTargetA() string

func (*Provider) GetTargetAAAA

func (d *Provider) GetTargetAAAA() string

func (*Provider) GetTargetCNAME

func (d *Provider) GetTargetCNAME() string

func (*Provider) GetTargetMX

func (d *Provider) GetTargetMX() string

func (*Provider) Present

func (d *Provider) Present(domain, token, keyAuth string) error

Present creates a TXT record to fulfill the dns-01 challenge

func (*Provider) Timeout

func (d *Provider) Timeout() (timeout, interval time.Duration)

Timeout returns the timeout and interval to use when checking for DNS propagation. Adjusting here to cope with spikes in propagation times.

func (*Provider) UpdateDNS

func (d *Provider) UpdateDNS(domain string) error

Just update DNS target records

Jump to

Keyboard shortcuts

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