internal

package
v4.12.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 6 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 struct {
	// contains filtered or unexported fields
}

Client VK client.

func NewClient

func NewClient(endpoint string, authOpts gophercloud.AuthOptions) (*Client, error)

NewClient creates a Client.

func (*Client) CreateTXTRecord

func (c *Client) CreateTXTRecord(zoneUUID string, record *DNSTXTRecord) error

func (*Client) DeleteTXTRecord

func (c *Client) DeleteTXTRecord(zoneUUID, recordUUID string) error

func (*Client) ListTXTRecords

func (c *Client) ListTXTRecords(zoneUUID string) ([]DNSTXTRecord, error)

func (*Client) ListZones

func (c *Client) ListZones() ([]DNSZone, error)

type DNSTXTRecord

type DNSTXTRecord struct {
	UUID    string `json:"uuid,omitempty"`
	Name    string `json:"name,omitempty"`
	DNS     string `json:"dns,omitempty"`
	Content string `json:"content,omitempty"`
	TTL     int    `json:"ttl,omitempty"`
}

type DNSZone

type DNSZone struct {
	UUID          string `json:"uuid,omitempty"`
	Tenant        string `json:"tenant,omitempty"`
	SoaPrimaryDNS string `json:"soa_primary_dns,omitempty"`
	SoaAdminEmail string `json:"soa_admin_email,omitempty"`
	SoaSerial     int    `json:"soa_serial,omitempty"`
	SoaRefresh    int    `json:"soa_refresh,omitempty"`
	SoaRetry      int    `json:"soa_retry,omitempty"`
	SoaExpire     int    `json:"soa_expire,omitempty"`
	SoaTTL        int    `json:"soa_ttl,omitempty"`
	Zone          string `json:"zone,omitempty"`
	Status        string `json:"status,omitempty"`
}

Jump to

Keyboard shortcuts

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