dns

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudflareDNSProvider

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

func NewCloudflareDNS

func NewCloudflareDNS(apiToken string) (*CloudflareDNSProvider, error)

NewCloudflareDNS creates a new CloudflareDNS instance using the provided API token

func (*CloudflareDNSProvider) AddRecord

func (c *CloudflareDNSProvider) AddRecord(zoneID, name, recordType, content string, proxied bool) error

func (*CloudflareDNSProvider) AllRecords

func (c *CloudflareDNSProvider) AllRecords(zoneID string) ([]cloudflare.DNSRecord, error)

func (*CloudflareDNSProvider) DeleteRecord

func (c *CloudflareDNSProvider) DeleteRecord(zoneID, recordID string) error

func (*CloudflareDNSProvider) GetRecord

func (c *CloudflareDNSProvider) GetRecord(zoneID, name string) (*cloudflare.DNSRecord, error)

Jump to

Keyboard shortcuts

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