types

package
v0.0.0-...-bda8ed4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRecordsInput

type CreateRecordsInput struct {
	Records []Record `json:"records"`
}

func (*CreateRecordsInput) Read

func (i *CreateRecordsInput) Read(reader io.Reader) error

func (*CreateRecordsInput) Write

func (i *CreateRecordsInput) Write(writer io.Writer) error

type CreateRecordsOutput

type CreateRecordsOutput struct {
	Records []Record `json:"records"`
	Error   string   `json:"error,omitempty"`
}

func (*CreateRecordsOutput) Read

func (o *CreateRecordsOutput) Read(reader io.Reader) error

func (*CreateRecordsOutput) Write

func (o *CreateRecordsOutput) Write(writer io.Writer) error

type DeleteRecordsInput

type DeleteRecordsInput struct {
	Records []Record `json:"records"`
}

func (*DeleteRecordsInput) Read

func (i *DeleteRecordsInput) Read(reader io.Reader) error

func (*DeleteRecordsInput) Write

func (i *DeleteRecordsInput) Write(writer io.Writer) error

type DeleteRecordsOutput

type DeleteRecordsOutput struct {
	Records []Record `json:"records"`
	Error   string   `json:"error,omitempty"`
}

func (*DeleteRecordsOutput) Read

func (o *DeleteRecordsOutput) Read(reader io.Reader) error

func (*DeleteRecordsOutput) Write

func (o *DeleteRecordsOutput) Write(writer io.Writer) error

type Error

type Error struct {
	Error string `json:"error"`
}

func (*Error) Read

func (e *Error) Read(reader io.Reader) error

func (*Error) Write

func (e *Error) Write(writer io.Writer) error

type Record

type Record struct {
	Type  string `json:"type"`
	FQDN  string `json:"fqdn"`
	Value string `json:"value"`
	TTL   uint32 `json:"ttl"`
}

func RecordFromLibDNS

func RecordFromLibDNS(r libdns.Record, zone string) *Record

func (*Record) ToLibDNS

func (r *Record) ToLibDNS(zoneAllowlist ...string) (libdns.Record, string, error)

type RegisterOutput

type RegisterOutput struct {
	Records []Record `json:"records"`
	Error   string   `json:"error,omitempty"`
}

func (*RegisterOutput) Read

func (o *RegisterOutput) Read(reader io.Reader) error

func (*RegisterOutput) Write

func (o *RegisterOutput) Write(writer io.Writer) error

Jump to

Keyboard shortcuts

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