Documentation ¶
Index ¶
- Constants
- type AddRecRequest
- type AddRecResponse
- type Client
- type DNSInputType
- type DNSResponseType
- type DNSSelectionFilterType
- type DelRecRequest
- type DelRecResponse
- type RecResult
- type RequestPacketType
- type ResponsePacketType
- type SiteDatasetType
- type SiteFilterType
- type SiteGenInfoType
- type SiteGetRequest
- type SiteGetResponse
- type SiteResponseType
- type SiteResult
- type SiteResultData
- type SiteTypeRequest
- type System
Constants ¶
View Source
const ( StatusOK = "ok" StatusError = "error" )
Response status.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRecRequest ¶
type AddRecResponse ¶
type Client ¶
Client the Plesk API client.
func (Client) AddRecord ¶
AddRecord adds a TXT record. https://docs.plesk.com/en-US/obsidian/api-rpc/about-xml-api/reference/managing-dns/managing-dns-records/adding-dns-record.34798/
func (Client) DeleteRecord ¶
DeleteRecord Deletes a TXT record. https://docs.plesk.com/en-US/obsidian/api-rpc/about-xml-api/reference/managing-dns/managing-dns-records/deleting-dns-records.34864/
type DNSInputType ¶
type DNSInputType struct { Text string `xml:",chardata"` AddRec []AddRecRequest `xml:"add_rec,omitempty"` DelRec []DelRecRequest `xml:"del_rec,omitempty"` }
type DNSResponseType ¶
type DNSResponseType struct { Text string `xml:",chardata"` AddRec []AddRecResponse `xml:"add_rec,omitempty"` DelRec []DelRecResponse `xml:"del_rec,omitempty"` }
type DNSSelectionFilterType ¶
type DelRecRequest ¶
type DelRecRequest struct { Text string `xml:",chardata"` Filter DNSSelectionFilterType `xml:"filter"` }
type DelRecResponse ¶
type RecResult ¶
type RequestPacketType ¶
type RequestPacketType struct { XMLName xml.Name `xml:"packet"` Text string `xml:",chardata"` DNS *DNSInputType `xml:"dns,omitempty"` Site *SiteTypeRequest `xml:"site,omitempty"` }
type ResponsePacketType ¶
type ResponsePacketType struct { XMLName xml.Name `xml:"packet"` Text string `xml:",chardata"` DNS DNSResponseType `xml:"dns,omitempty"` Site SiteResponseType `xml:"site,omitempty"` System *System `xml:"system,omitempty"` }
type SiteDatasetType ¶
type SiteDatasetType struct { Text string `xml:",chardata"` GenInfo *SiteGenInfoType `xml:"gen_info,omitempty"` }
type SiteFilterType ¶
type SiteGenInfoType ¶
type SiteGenInfoType struct { Text string `xml:",chardata"` CrDate string `xml:"cr_date,omitempty"` Name string `xml:"name,omitempty"` ASCIIName string `xml:"ascii-name,omitempty"` Status string `xml:"status,omitempty"` RealSize string `xml:"real_size,omitempty"` DNSIPAddress string `xml:"dns_ip_address,omitempty"` HType string `xml:"htype,omitempty"` GUID string `xml:"guid,omitempty"` WebspaceGUID string `xml:"webspace-guid,omitempty"` SbSiteUUID string `xml:"sb-site-uuid,omitempty"` WebspaceID string `xml:"webspace-id,omitempty"` Description string `xml:"description,omitempty"` }
type SiteGetRequest ¶
type SiteGetRequest struct { Text string `xml:",chardata"` Filter *SiteFilterType `xml:"filter,omitempty"` Dataset SiteDatasetType `xml:"dataset,omitempty"` }
type SiteGetResponse ¶
type SiteGetResponse struct { Text string `xml:",chardata"` Result *SiteResult `xml:"result,omitempty"` }
type SiteResponseType ¶
type SiteResponseType struct { Text string `xml:",chardata"` Get SiteGetResponse `xml:"get"` }
type SiteResult ¶
type SiteResult struct { Text string `xml:",chardata"` ID int `xml:"id"` FilterID string `xml:"filter-id"` Status string `xml:"status"` ErrCode string `xml:"errcode"` ErrText string `xml:"errtext"` Data *SiteResultData `xml:"data"` }
func (SiteResult) Error ¶
func (s SiteResult) Error() string
type SiteResultData ¶
type SiteResultData struct { Text string `xml:",chardata"` GenInfo *SiteGenInfoType `xml:"gen_info"` }
type SiteTypeRequest ¶
type SiteTypeRequest struct { Text string `xml:",chardata"` Get SiteGetRequest `xml:"get"` }
Click to show internal directories.
Click to hide internal directories.