dynv6

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 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 AddRecordRequest

type AddRecordRequest struct {
	Type     *string `json:"type,omitempty"`
	Name     *string `json:"name,omitempty"`
	Port     *int    `json:"port,omitempty"`
	Weight   *int    `json:"weight,omitempty"`
	Priority *int    `json:"priority,omitempty"`
	Data     *string `json:"data,omitempty"`
	Flags    *int    `json:"flags,omitempty"`
	Tag      *string `json:"tag,omitempty"`
}

type AddRecordResponse

type AddRecordResponse DNSRecord

type Client

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

func NewClient

func NewClient(httpToken string) (*Client, error)

func (*Client) AddRecord

func (c *Client) AddRecord(zoneID int64, req *AddRecordRequest) (*AddRecordResponse, error)

func (*Client) AddRecordWithContext

func (c *Client) AddRecordWithContext(ctx context.Context, zoneID int64, req *AddRecordRequest) (*AddRecordResponse, error)

func (*Client) DeleteRecord

func (c *Client) DeleteRecord(zoneID int64, recordID int64) (*DeleteRecordResponse, error)

func (*Client) DeleteRecordWithContext

func (c *Client) DeleteRecordWithContext(ctx context.Context, zoneID int64, recordID int64) (*DeleteRecordResponse, error)

func (*Client) ListRecords

func (c *Client) ListRecords(zoneID int64) (*ListRecordsResponse, error)

func (*Client) ListRecordsWithContext

func (c *Client) ListRecordsWithContext(ctx context.Context, zoneID int64) (*ListRecordsResponse, error)

func (*Client) ListZones

func (c *Client) ListZones() (*ListZonesResponse, error)

func (*Client) ListZonesWithContext

func (c *Client) ListZonesWithContext(ctx context.Context) (*ListZonesResponse, error)

func (*Client) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration) *Client

type DNSRecord

type DNSRecord struct {
	ID           int64  `json:"id"`
	ZoneID       int64  `json:"zoneID"`
	Type         string `json:"type"`
	Name         string `json:"name"`
	Port         int    `json:"port"`
	Weight       int    `json:"weight"`
	Priority     int    `json:"priority"`
	Data         string `json:"data"`
	ExpandedData string `json:"expandedData"`
	Flags        int    `json:"flags,omitempty"`
	Tag          string `json:"tag,omitempty"`
}

type DeleteRecordResponse

type DeleteRecordResponse DNSRecord

type ListRecordsResponse

type ListRecordsResponse []*DNSRecord

type ListZonesResponse

type ListZonesResponse []*ZoneRecord

type ZoneRecord

type ZoneRecord struct {
	ID          int64  `json:"id"`
	Name        string `json:"name"`
	IPv4Address string `json:"ipv4address"`
	IPv6Prefix  string `json:"ipv6prefix"`
	CreatedAt   string `json:"createdAt"`
	UpdatedAt   string `json:"updatedAt"`
}

Jump to

Keyboard shortcuts

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