Documentation ¶
Index ¶
- Constants
- func CreateDNSLinkContent(hash string) string
- func CreateDNSLinkName(subdomain string) string
- type Manager
- func (m *Manager) DeleteRecord(id string) error
- func (m *Manager) NewCNAME(name string, target string) (*cf.DNSRecord, error)
- func (m *Manager) NewDNSLink(subdomain string, hash string) ([]*cf.DNSRecord, error)
- func (m *Manager) NewTXT(name string, content string) (*cf.DNSRecord, error)
- func (m *Manager) UpdateRecord(id, rtype, name, content string) error
Constants ¶
View Source
const IPFSGateway = "cloudflare-ipfs.com"
Variables ¶
This section is empty.
Functions ¶
func CreateDNSLinkContent ¶
CreateDNSLinkContent converts a hash into the Content format for dnslink TXT entries.
func CreateDNSLinkName ¶
CreateDNSLinkName converts a subdomain into the Name format for dnslink TXT entries.
Types ¶
type Manager ¶
type Manager struct { Domain string // contains filtered or unexported fields }
Manager wraps a CloudflareClient client.
func NewManager ¶
NewManager return a cloudflare-backed dns updating client.
func (*Manager) DeleteRecord ¶
Delete removes a record by ID from dns.
func (*Manager) NewDNSLink ¶
NewDNSLink enters a two dns records to enable DNS link.
func (*Manager) UpdateRecord ¶
UpdateRecord updates an existing record.
Click to show internal directories.
Click to hide internal directories.