zones

package
v0.0.0-...-cb3ac65 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Add creates new zone
	Add(zone models.Zone) (*models.Zone, error)
	// AddRecordSet will add a new set of records to a zone. Existing record
	// sets for the exact name/type combination will be replaced.
	AddRecordSet(zone string, set models.ResourceRecordSet) error
	// Delete delete zone from authoritative server
	Delete(name string) error
	// DeleteRecordSet removes a record set from a zone. The record set is matched
	// by name and type.
	DeleteRecordSet(zone, name, rrtype string) error
	// List known authoritative zones
	List() (models.Zones, error)
	// ListByName return list with one authoritative zone by name argument
	ListByName(name string) (models.Zones, error)
	// GetByName return zone with one authoritative zone by name argument and include the “rrsets” in the response
	GetByName(name string) (*models.Zone, error)
}

Client defines the interface for forwarding zone operations.

func New

func New(hc *pdnshttp.PDNSClient) Client

New creates a new Zones client

Jump to

Keyboard shortcuts

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