nanelo

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: MIT Imports: 7 Imported by: 2

README

Nanelo for libdns

Go Reference

This package implements the libdns interfaces for Nanelo, allowing you to manage DNS records.

This provider currently only supports Append and Delete actions - ideal for solving DNS ACME challenges.

Documentation

Overview

Package nanelo implements a DNS record management client compatible with the libdns interfaces for Nanelo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	OK     bool                    `json:"ok"`
	Error  *string                 `json:"error"`
	Result *map[string]interface{} `json:"result"`
}

type Provider

type Provider struct {
	APIToken string `json:"api_token,omitempty"`
}

Provider facilitates DNS record manipulation with Nanelo

func (*Provider) AppendRecords

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

AppendRecords adds records to the zone. It returns the records that were added.

func (*Provider) DeleteRecords

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

DeleteRecords deletes the records from the zone. It returns the records that were deleted.

Jump to

Keyboard shortcuts

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