Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecordA ¶
type RecordA struct { ID int `json:"id"` Type string `json:"type"` Name string `json:"name"` Content string `json:"content"` TTL int `json:"ttl"` }
RecordA represents Njalla's A record
func NewRecordA ¶
NewRecordA validates and creates a new RecordA
func (RecordA) GetURLValues ¶
GetURLValues converts struct fields back into provider suitable values
type RecordAAAA ¶
type RecordAAAA struct { ID int `json:"id"` Type string `json:"type"` Name string `json:"name"` Content string `json:"content"` TTL int `json:"ttl"` }
RecordAAAA represents Njalla's AAAA record
func NewRecordAAAA ¶
func NewRecordAAAA(name string, content string, ttl int) (RecordAAAA, error)
NewRecordAAAA validates and creates a new RecordAAAA
func (RecordAAAA) GetURLValues ¶
func (r RecordAAAA) GetURLValues() url.Values
GetURLValues converts struct fields back into provider suitable values
type RecordCAA ¶
type RecordCAA struct { ID int `json:"id"` Type string `json:"type"` Name string `json:"name"` Content string `json:"content"` TTL int `json:"ttl"` }
RecordCAA represents Njalla's CAA record
func NewRecordCAA ¶
NewRecordCAA validates and creates a new RecordCAA
func (RecordCAA) GetURLValues ¶
GetURLValues converts struct fields back into provider suitable values
type RecordCNAME ¶
type RecordCNAME struct { ID int `json:"id"` Type string `json:"type"` Name string `json:"name"` Content string `json:"content"` TTL int `json:"ttl"` }
RecordCNAME represents Njalla's CNAME record
func NewRecordCNAME ¶
func NewRecordCNAME(name string, content string, ttl int) (RecordCNAME, error)
NewRecordCNAME validates and creates a new RecordCNAME
func (RecordCNAME) GetURLValues ¶
func (r RecordCNAME) GetURLValues() url.Values
GetURLValues converts struct fields back into provider suitable values
type RecordDynamic ¶
type RecordDynamic struct { ID int `json:"id"` Type string `json:"type"` Name string `json:"name"` TTL int `json:"ttl"` }
RecordDynamic represents Njalla's Dynamic record
func NewRecordDynamic ¶
func NewRecordDynamic(name string, content string, ttl int) (RecordDynamic, error)
NewRecordDynamic validates and creates a new RecordDynamic
func (RecordDynamic) GetURLValues ¶
func (r RecordDynamic) GetURLValues() url.Values
GetURLValues converts struct fields back into provider suitable values
type RecordMX ¶
type RecordMX struct { ID int `json:"id"` Type string `json:"type"` Name string `json:"name"` Content string `json:"content"` TTL int `json:"ttl"` Priority int `json:"prio"` }
RecordMX represents Njalla's MX record
func NewRecordMX ¶
NewRecordMX validates and creates a new RecordMX
func (RecordMX) GetURLValues ¶
GetURLValues converts struct fields back into provider suitable values
type RecordNS ¶
type RecordNS struct { ID int `json:"id"` Type string `json:"type"` Name string `json:"name"` Content string `json:"content"` TTL int `json:"ttl"` }
RecordNS represents Njalla's NS record
func NewRecordNS ¶
NewRecordNS validates and creates a new RecordNS
func (RecordNS) GetURLValues ¶
GetURLValues converts struct fields back into provider suitable values
type RecordPTR ¶
type RecordPTR struct { ID int `json:"id"` Type string `json:"type"` Name string `json:"name"` Content string `json:"content"` TTL int `json:"ttl"` }
RecordPTR represents Njalla's PTR record
func NewRecordPTR ¶
NewRecordPTR validates and creates a new RecordPTR
func (RecordPTR) GetURLValues ¶
GetURLValues converts struct fields back into provider suitable values
type RecordRedirect ¶
type RecordRedirect struct { ID int `json:"id"` Type string `json:"type"` Name string `json:"name"` URL string `json:"content"` RedirectType int `json:"prio"` }
RecordRedirect represents Njalla's Redirect record
func NewRecordRedirect ¶
func NewRecordRedirect(name string, url string, redirectType int) (RecordRedirect, error)
NewRecordRedirect validates and creates a new RecordRedirect
func (RecordRedirect) GetURLValues ¶
func (r RecordRedirect) GetURLValues() url.Values
GetURLValues converts struct fields back into provider suitable values
type RecordSRV ¶
type RecordSRV struct { ID int `json:"id"` Type string `json:"type"` Name string `json:"name"` Content string `json:"content"` TTL int `json:"ttl"` Priority int `json:"prio"` Weight uint `json:"weight"` Port uint `json:"port"` }
RecordSRV represents Njalla's SRV record
func NewRecordSRV ¶
func NewRecordSRV( name string, content string, ttl int, priority int, weight uint, port uint, ) (RecordSRV, error)
NewRecordSRV validates and creates a new RecordSRV
func (RecordSRV) GetURLValues ¶
GetURLValues converts struct fields back into provider suitable values
type RecordSSHFP ¶
type RecordSSHFP struct { ID int `json:"id"` Type string `json:"type"` Name string `json:"name"` TTL int `json:"ttl"` SSHAlgorithm int `json:"ssh_algorithm"` SSHType int `json:"ssh_type"` Content string `json:"content"` }
RecordSSHFP represents Njalla's SSHFP record
func NewRecordSSHFP ¶
func NewRecordSSHFP( name string, content string, ttl int, sshAlgorithm int, sshType int, ) (RecordSSHFP, error)
NewRecordSSHFP validates and creates a new RecordSSHFP
func (RecordSSHFP) GetURLValues ¶
func (r RecordSSHFP) GetURLValues() url.Values
GetURLValues converts struct fields back into provider suitable values
type RecordTLSA ¶
type RecordTLSA struct { ID int `json:"id"` Type string `json:"type"` Name string `json:"name"` Content string `json:"content"` TTL int `json:"ttl"` }
RecordTLSA represents Njalla's TLSA record
func NewRecordTLSA ¶
func NewRecordTLSA(name string, content string, ttl int) (RecordTLSA, error)
NewRecordTLSA validates and creates a new RecordTLSA
func (RecordTLSA) GetURLValues ¶
func (r RecordTLSA) GetURLValues() url.Values
GetURLValues converts struct fields back into provider suitable values
type RecordTXT ¶
type RecordTXT struct { ID int `json:"id"` Type string `json:"type"` Name string `json:"name"` Content string `json:"content"` TTL int `json:"ttl"` }
RecordTXT represents Njalla's TXT record
func NewRecordTXT ¶
NewRecordTXT validates and creates a new RecordTXT
func (RecordTXT) GetURLValues ¶
GetURLValues converts struct fields back into provider suitable values
type Records ¶
type Records []Record
Records is an array of different record types that implement the Record interface
func (*Records) UnmarshalJSON ¶
UnmarshalJSON customises the default unmarshal behaviour to parse into specific record types