acmerelay

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 11 Imported by: 0

README

acmerelay-provider

Caddy module that relays the acme challenge to another server

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

type Provider

type Provider struct {
	APIKey      string `json:"api_key,omitempty"`
	APIEndpoint string `json:"api_endpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*Provider) AppendRecords

func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)

func (*Provider) DeleteRecords

func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)

type ProviderWrapper

type ProviderWrapper struct{ *Provider }

Provider wraps the provider implementation as a Caddy module.

func (ProviderWrapper) CaddyModule

func (ProviderWrapper) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*ProviderWrapper) Provision

func (p *ProviderWrapper) Provision(ctx caddy.Context) error

Before using the provider config, resolve placeholders in the API token. Implements caddy.Provisioner.

func (*ProviderWrapper) UnmarshalCaddyfile

func (p *ProviderWrapper) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile sets up the DNS provider from Caddyfile tokens. Syntax:

acmerelay {
    api_key <api_key>
    endpoint <url>
}

Expansion of placeholders is left to the JSON config caddy.Provisioner (above).

type Record

type Record struct {
	Subdomain string `json:"subdomain"`
	Target    string `json:"target"`
	TTL       int    `json:"ttl"`
}

Jump to

Keyboard shortcuts

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