libknary

package
v3.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accept443

func Accept443(ln net.Listener, wg *sync.WaitGroup, restart <-chan bool)

func Accept80

func Accept80(ln net.Listener)

func AcceptDNS

func AcceptDNS(wg *sync.WaitGroup)

func CheckTLSExpiry

func CheckTLSExpiry(days int) (bool, int)

func CheckUpdate

func CheckUpdate(version string, githubVersion string, githubURL string) (bool, error)

func GetDomains

func GetDomains() []string

func GetFirstDomain

func GetFirstDomain() string

func GiveHead

func GiveHead(colour int)

func GuessIP

func GuessIP(domain string) (string, error)

func HandleDNS

func HandleDNS(w dns.ResponseWriter, r *dns.Msg, EXT_IP string)

func HeartBeat

func HeartBeat(version string, firstrun bool) (bool, error)

func IsDeprecated added in v3.4.6

func IsDeprecated(old string, new string, version string)

func IsIPv4

func IsIPv4(str string) bool

func IsIPv6

func IsIPv6(str string) bool

func Listen443

func Listen443() net.Listener

func Listen80

func Listen80() net.Listener

func LoadAllowlist

func LoadAllowlist() (bool, error)

func LoadBlacklist

func LoadBlacklist() (bool, error)

func LoadDomains

func LoadDomains(domainList string) error

func LoadZone

func LoadZone() (bool, error)

func Printy

func Printy(msg string, col int)

func StartLetsEncrypt

func StartLetsEncrypt()

func StartMaintenance

func StartMaintenance(version string, githubVersion string, githubURL string)

func TLSmonitor

func TLSmonitor(restart chan bool)

func UsageStats

func UsageStats(version string) bool

Types

type Config

type Config struct {
	TTL                int
	PropagationTimeout time.Duration
	PollingInterval    time.Duration
}

Config is used to configure the creation of the DNSProvider.

func NewDefaultConfig

func NewDefaultConfig() *Config

NewDefaultConfig returns a default configuration for the DNSProvider.

type DNSProvider

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

DNSProvider implements the challenge.Provider interface.

func NewDNSProvider

func NewDNSProvider() (*DNSProvider, error)

func NewDNSProviderConfig

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

func (*DNSProvider) CleanUp

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

CleanUp removes the TXT record matching the specified parameters.

func (*DNSProvider) Present

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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