dnsplugin

package
v2.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MPL-2.0 Imports: 141 Imported by: 1

Documentation

Overview

Auto-generated file. Do not edit.

Index

Constants

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

Variables

Functions

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.

Types

type DnsPlugin

type DnsPlugin struct {
	plugin.Plugin
}

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 {
	dnspluginproto.UnimplementedDNSProviderServiceServer
	// 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