cf

package
v0.0.0-...-8d20034 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DNSRecordNotFoundErr = errors.New("DNSRecord not found")
)

Functions

This section is empty.

Types

type CF

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

func New

func New(config Config) (*CF, error)

func (*CF) CreateDNSRecord

func (c *CF) CreateDNSRecord(ctx context.Context, zoneID string, record *DNSRecord) (*DNSRecord, error)

func (*CF) GetDNSRecordFromNameAndType

func (c *CF) GetDNSRecordFromNameAndType(ctx context.Context, zoneID string, name string, recordType string) (*DNSRecord, error)

func (*CF) GetZoneIdByZoneName

func (c *CF) GetZoneIdByZoneName(ctx context.Context, zoneName string) (string, error)

func (*CF) UpdateDNSRecord

func (c *CF) UpdateDNSRecord(ctx context.Context, zoneID string, record *DNSRecord) (*DNSRecord, error)

type Config

type Config struct {
	APIToken string
}

type DNSRecord

type DNSRecord cloudflare.DNSRecord

Jump to

Keyboard shortcuts

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