Version: v2.18.0 Latest Latest

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

Go to latest
Published: Sep 21, 2023 License: MPL-2.0 Imports: 136 Imported by: 0



Auto-generated file. Do not edit.



View Source
const (
	ProtocolVersion  = 1
	MagicCookieValue = "990EF127-D8AA-43D3-9196-9493C2D6C475"
	PluginName       = "dnsplugin"
	PluginArg        = "-dnsplugin"



func NewClient

func NewClient(
	providerName string,
	config map[string]string,
	recursiveNameservers []string,
) (challenge.ProviderTimeout, func(), error)

NewClient creates a new DNS provider instance by dispatching to itself via go-plugin. The client for the new provider is returned, along with a closer function that should be called when done to shut down the plugin.

The plugin is initialized with the settings passed in:

  • The environment is set with the config map.
  • If supplied, the global recursive nameservers are also set (via the dns01 package - some providers use these facilities).

func Serve

func Serve()

Serve serves the DNS plugin. This function does not retun and will cause the process to exit after the plugin is finished running.


type DnsPlugin

type DnsPlugin struct {

DnsPlugin the gRPC plugin for serving the DNS plugin that has been set.

func (*DnsPlugin) GRPCClient

func (p *DnsPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (*DnsPlugin) GRPCServer

func (p *DnsPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error

type DnsProviderClient

type DnsProviderClient struct {
	// contains filtered or unexported fields

func (*DnsProviderClient) CleanUp

func (m *DnsProviderClient) CleanUp(domain, token, keyAuth string) error

func (*DnsProviderClient) Configure

func (m *DnsProviderClient) Configure(providerName string, config map[string]string, recursiveNameservers []string) error

func (*DnsProviderClient) Present

func (m *DnsProviderClient) Present(domain, token, keyAuth string) error

func (*DnsProviderClient) Timeout

func (m *DnsProviderClient) Timeout() (time.Duration, time.Duration)

type DnsProviderServer

type DnsProviderServer struct {
	// contains filtered or unexported fields

func (*DnsProviderServer) CleanUp

func (*DnsProviderServer) Configure

func (*DnsProviderServer) Present

func (*DnsProviderServer) Timeout

Jump to

Keyboard shortcuts

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