Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUserInput ¶
CheckUserInput check cli input provided by user meets requirements and return input in map if it does
Types ¶
type ClientConn ¶
ClientConn required data for interaction with the powerdns api
func NewClientConn ¶
func NewClientConn() (*ClientConn, error)
NewClientConn validate the user input is as expected and add it to a ClientConn structure.
func (*ClientConn) UpdateARecord ¶ added in v1.0.1
func (c *ClientConn) UpdateARecord() error
UpdateARecord add/delete A record
type Comments ¶
type Comments struct { Content string `json:"content,omitempty"` Account string `json:"account,omitempty"` ModifiedAT int64 `json:"modified_at,omitempty"` }
Comments structure with JSON API metadata
type RRset ¶
type RRset struct { Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` TTL int `json:"ttl,omitempty"` Changetype string `json:"changetype,omitempty"` Records []Records `json:"records"` Comments []Comments `json:"comments"` }
RRset structure with JSON API metadata
Click to show internal directories.
Click to hide internal directories.