Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client the ArvanCloud client.
func (*Client) CreateRecord ¶
func (c *Client) CreateRecord(ctx context.Context, domain string, record DNSRecord) (*DNSRecord, error)
CreateRecord creates a DNS record. https://www.arvancloud.ir/docs/api/cdn/4.0#operation/dns_records.create
func (*Client) DeleteRecord ¶
DeleteRecord deletes a DNS record. https://www.arvancloud.ir/docs/api/cdn/4.0#operation/dns_records.remove
type DNSRecord ¶
type DNSRecord struct { ID string `json:"id,omitempty"` Type string `json:"type"` Value any `json:"value,omitempty"` Name string `json:"name,omitempty"` TTL int `json:"ttl,omitempty"` UpstreamHTTPS string `json:"upstream_https,omitempty"` IPFilterMode *IPFilterMode `json:"ip_filter_mode,omitempty"` }
DNSRecord a DNS record.
type IPFilterMode ¶
type IPFilterMode struct { Count string `json:"count,omitempty"` Order string `json:"order,omitempty"` GeoFilter string `json:"geo_filter,omitempty"` }
IPFilterMode a DNS ip_filter_mode.
type TXTRecordValue ¶
type TXTRecordValue struct {
Text string `json:"text,omitempty"` // only for TXT Record.
}
TXTRecordValue represents a TXT record value.
Click to show internal directories.
Click to hide internal directories.