client_dns

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MPL-2.0 Imports: 5 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 client.Client

func (*Client) CreateRecord

func (c *Client) CreateRecord(record *RecordCreateRequest) (*Record, error)

func (*Client) DeleteRecord

func (c *Client) DeleteRecord(id string) error

func (*Client) GetAllRecords

func (c *Client) GetAllRecords() ([]Record, error)

func (*Client) GetAllZones

func (c *Client) GetAllZones() ([]Zone, error)

func (*Client) GetRecord

func (c *Client) GetRecord(id string, zoneName string) (*Record, error)

func (*Client) GetZone

func (c *Client) GetZone(id string) (*Zone, error)

func (*Client) UpdateRecord

func (c *Client) UpdateRecord(id string, record *RecordUpdateRequest) (*Record, error)

type Record

type Record struct {
	ID             string `json:"id"`
	ZoneID         string `json:"zoneId"`
	ZoneName       string `json:"zoneName"`
	Type           string `json:"type"`
	Name           string `json:"name"`
	Content        string `json:"content"`
	TTL            int    `json:"ttl"`
	Comments       string `json:"comments"`
	LastChangeDate string `json:"lastChangeDate"`
	Tenant         string `json:"tenant"`
}

type RecordCreateRequest

type RecordCreateRequest struct {
	ZoneName string `json:"zoneName"`
	Type     string `json:"type"`
	Name     string `json:"name"`
	Content  string `json:"content"`
	TTL      int    `json:"ttl"`
	Tenant   string `json:"tenant"`
	Mode     string `json:"mode"`
}

type RecordUpdateRequest

type RecordUpdateRequest struct {
	Type     string `json:"type"`
	Name     string `json:"name"`
	Content  string `json:"content"`
	TTL      int    `json:"ttl"`
	ZoneName string `json:"zoneName"`
	ZoneID   string `json:"zoneId"`
	Tenant   string `json:"tenant"`
	Mode     string `json:"mode"`
}

type SOA

type SOA struct {
	Refresh     int `json:"refresh"`
	Retry       int `json:"retry"`
	Expire      int `json:"expire"`
	TTL         int `json:"ttl"`
	NegativeTTL int `json:"negative_ttl"`
}

type Zone

type Zone struct {
	ID             string `json:"id"`
	Name           string `json:"name"`
	Status         string `json:"status"`
	Type           string `json:"type"`
	Tenant         string `json:"tenant"`
	Email          string `json:"email"`
	SOA            SOA    `json:"soa"`
	DnsSec         string `json:"dnsSec"`
	LastChangeDate string `json:"lastChangeDate"`
}

Jump to

Keyboard shortcuts

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