Documentation ¶
Overview ¶
Auto-generated file. Do not edit.
Index ¶
- Constants
- Variables
- func NewClient(providerName string, config map[string]string, recursiveNameservers []string) (challenge.ProviderTimeout, func(), error)
- func Serve()
- type DnsPlugin
- type DnsProviderClient
- func (m *DnsProviderClient) CleanUp(domain, token, keyAuth string) error
- func (m *DnsProviderClient) Configure(providerName string, config map[string]string, recursiveNameservers []string) error
- func (m *DnsProviderClient) Present(domain, token, keyAuth string) error
- func (m *DnsProviderClient) Timeout() (time.Duration, time.Duration)
- type DnsProviderServer
- func (m *DnsProviderServer) CleanUp(ctx context.Context, req *dnspluginproto.CleanUpRequest) (*dnspluginproto.CleanUpResponse, error)
- func (s *DnsProviderServer) Configure(ctx context.Context, req *dnspluginproto.ConfigureRequest) (*dnspluginproto.ConfigureResponse, error)
- func (m *DnsProviderServer) Present(ctx context.Context, req *dnspluginproto.PresentRequest) (*dnspluginproto.PresentResponse, error)
- func (m *DnsProviderServer) Timeout(ctx context.Context, req *dnspluginproto.TimeoutRequest) (*dnspluginproto.TimeoutResponse, error)
Constants ¶
View Source
const ( ProtocolVersion = 1 MagicCookieKey = "TERRAFORM_PROVIDER_ACME_MAGIC_COOKIE_KEY" MagicCookieValue = "990EF127-D8AA-43D3-9196-9493C2D6C475" PluginName = "dnsplugin" PluginArg = "-dnsplugin" )
Variables ¶
View Source
var Handshake = plugin.HandshakeConfig{ ProtocolVersion: ProtocolVersion, MagicCookieKey: MagicCookieKey, MagicCookieValue: MagicCookieValue, }
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).
Types ¶
type DnsPlugin ¶
type DnsPlugin struct {
plugin.Plugin
}
DnsPlugin the gRPC plugin for serving the DNS plugin that has been set.
func (*DnsPlugin) GRPCClient ¶
type DnsProviderClient ¶
type DnsProviderClient struct {
// contains filtered or unexported fields
}
func (*DnsProviderClient) CleanUp ¶
func (m *DnsProviderClient) CleanUp(domain, token, keyAuth string) error
func (*DnsProviderClient) Present ¶
func (m *DnsProviderClient) Present(domain, token, keyAuth string) error
type DnsProviderServer ¶
type DnsProviderServer struct { dnspluginproto.UnimplementedDNSProviderServiceServer // contains filtered or unexported fields }
func (*DnsProviderServer) CleanUp ¶
func (m *DnsProviderServer) CleanUp(ctx context.Context, req *dnspluginproto.CleanUpRequest) (*dnspluginproto.CleanUpResponse, error)
func (*DnsProviderServer) Configure ¶
func (s *DnsProviderServer) Configure(ctx context.Context, req *dnspluginproto.ConfigureRequest) (*dnspluginproto.ConfigureResponse, error)
func (*DnsProviderServer) Present ¶
func (m *DnsProviderServer) Present(ctx context.Context, req *dnspluginproto.PresentRequest) (*dnspluginproto.PresentResponse, error)
func (*DnsProviderServer) Timeout ¶
func (m *DnsProviderServer) Timeout(ctx context.Context, req *dnspluginproto.TimeoutRequest) (*dnspluginproto.TimeoutResponse, error)
Click to show internal directories.
Click to hide internal directories.