internal

package
v0.4.25 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvAccessToken = envNamespace + "ACCESS_TOKEN"

	EnvTTL                = envNamespace + "TTL"
	EnvPropagationTimeout = envNamespace + "PROPAGATION_TIMEOUT"
	EnvPollingInterval    = envNamespace + "POLLING_INTERVAL"
	EnvHTTPTimeout        = envNamespace + "HTTP_TIMEOUT"
)

Environment variables names.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AccessToken string

	TTL                int
	PropagationTimeout time.Duration
	PollingInterval    time.Duration
	HTTPTimeout        time.Duration
}

func NewDefaultConfig

func NewDefaultConfig() *Config

type DNSProvider

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

这里有意不使用 lego 提供的 linode 实现, 因为它引入了 Linode SDK,会导致依赖包体积增大。

func NewDNSProvider

func NewDNSProvider() (*DNSProvider, error)

func NewDNSProviderConfig

func NewDNSProviderConfig(config *Config) (*DNSProvider, error)

func (*DNSProvider) CleanUp

func (d *DNSProvider) CleanUp(ctx context.Context, domain, token, keyAuth string) error

func (*DNSProvider) Present

func (d *DNSProvider) Present(ctx context.Context, domain, token, keyAuth string) error

func (*DNSProvider) Timeout

func (d *DNSProvider) Timeout() (time.Duration, time.Duration)

Jump to

Keyboard shortcuts

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