Documentation
¶
Index ¶
- Constants
- type AuthData
- type CCPClient
- func (c *CCPClient) CreateDnsRecord(domainName string, record NewDnsRecord) (*DnsRecord, error)
- func (c *CCPClient) DeleteDnsRecord(domainName string, record DnsRecord) error
- func (c *CCPClient) GetDnsRecordById(domainName string, id string) (*DnsRecord, error)
- func (c *CCPClient) GetDnsRecords(domainName string) ([]DnsRecord, error)
- func (c *CCPClient) GetDnsZone(domainName string) (*DnsZone, error)
- func (c *CCPClient) UpdateDnsRecord(domainName string, record DnsRecord) (*DnsRecord, error)
- type CreateDnsRecordsRequest
- type DnsRecord
- type DnsRecordSet
- type DnsRecordsResponse
- type DnsZone
- type DnsZoneResponse
- type DomainInfoRequest
- type LoginData
- type LoginResponse
- type NewDnsRecord
- type NewDnsRecordSet
- type RequestBody
- type ResponseBody
- type SessionData
- type UpdateDnsRecordsRequest
Constants ¶
View Source
const HostURL string = "https://ccp.netcup.net/run/webservice/servers/endpoint.php?JSON"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CCPClient ¶
type CCPClient struct { UserAgent string // contains filtered or unexported fields }
func NewCCPClient ¶
func (*CCPClient) CreateDnsRecord ¶
func (c *CCPClient) CreateDnsRecord(domainName string, record NewDnsRecord) (*DnsRecord, error)
func (*CCPClient) DeleteDnsRecord ¶
func (*CCPClient) GetDnsRecordById ¶
func (*CCPClient) GetDnsRecords ¶
type CreateDnsRecordsRequest ¶
type CreateDnsRecordsRequest struct { DomainInfoRequest DnsRecordSet NewDnsRecordSet `json:"dnsrecordset"` }
type DnsRecordSet ¶
type DnsRecordSet struct {
DnsRecords []DnsRecord `json:"dnsrecords,omitempty"`
}
type DnsRecordsResponse ¶
type DnsRecordsResponse struct { ResponseBody ResponseData DnsRecordSet `json:"responsedata"` }
type DnsZoneResponse ¶
type DnsZoneResponse struct { ResponseBody ResponseData DnsZone `json:"responsedata"` }
type DomainInfoRequest ¶
type LoginResponse ¶
type LoginResponse struct { ResponseBody ResponseData SessionData `json:"responsedata"` }
type NewDnsRecord ¶
type NewDnsRecord struct { Hostname string `json:"hostname"` Type string `json:"type"` Priority string `json:"priority,omitempty"` Destination string `json:"destination"` }
func (NewDnsRecord) Matches ¶
func (r NewDnsRecord) Matches(r2 DnsRecord) bool
type NewDnsRecordSet ¶
type NewDnsRecordSet struct {
DnsRecords []NewDnsRecord `json:"dnsrecords"`
}
type RequestBody ¶
type RequestBody struct { Action string `json:"action"` Param interface{} `json:"param"` }
type ResponseBody ¶
type ResponseBody struct { ServerRequestId string `json:"serverrequestid"` Action string `json:"action"` Status string `json:"status"` // Status of the Message like "error", "started", "pending", "warning" or "success". StatusCode int `json:"statuscode"` // Status code of the Message like 2011. ShortMessage string `json:"shortmessage"` LongMessage string `json:"longmessage"` }
type SessionData ¶
type SessionData struct {
SessionId string `json:"apisessionid"`
}
type UpdateDnsRecordsRequest ¶
type UpdateDnsRecordsRequest struct { DomainInfoRequest DnsRecordSet DnsRecordSet `json:"dnsrecordset"` }
Click to show internal directories.
Click to hide internal directories.