Documentation ¶
Index ¶
- type Client
- func (client *Client) AddRecord(domainId int, recordName string, recordType string, recordValue string, ...) (Record, error)
- func (client *Client) AddSingleDomain(domainName string) (Domain, error)
- func (client *Client) DeleteRecord(domainId int, recordId int) error
- func (client *Client) DeleteSingleDomain(domainId int) error
- func (client *Client) GetAllDomains(index string, order string) (DomainsList, error)
- func (client *Client) GetAllRecords(domainId int) (RecordsList, error)
- func (client *Client) GetSingleDomainById(domainId int) (Domain, error)
- func (client *Client) GetSingleDomainByName(domainName string) (Domain, error)
- func (client *Client) UpdateRecord(domainId int, recordName string, recordType string, recordValue string, ...) error
- type Domain
- type DomainShort
- type DomainsList
- type ErrApiRequest
- type ErrDomainExists
- type ErrDomainIdNotFound
- type ErrDomainIdOrRecordIdNotFound
- type ErrDomainIdPending
- type ErrDomainNotFound
- type ErrFormat
- type ErrRecordExists
- type NameServers
- type NewDomain
- type NewRecord
- type Record
- type RecordsList
- type Request
- type UpdateRecord
- type VanityNameServers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) AddRecord ¶
func (client *Client) AddRecord(domainId int, recordName string, recordType string, recordValue string, recordGtdLocation string, recordTtl int) (Record, error)
add record
func (*Client) AddSingleDomain ¶
Add single domain
func (*Client) DeleteRecord ¶
delete record
func (*Client) DeleteSingleDomain ¶
Delete single domain
func (*Client) GetAllDomains ¶
func (client *Client) GetAllDomains(index string, order string) (DomainsList, error)
Get all domains
func (*Client) GetAllRecords ¶
func (client *Client) GetAllRecords(domainId int) (RecordsList, error)
get all records
func (*Client) GetSingleDomainById ¶
Get single domain by id
func (*Client) GetSingleDomainByName ¶
Get single domain by name
type Domain ¶
type Domain struct { Name string `json:"name"` Id int `json:"id"` Created int `json:"created"` DelegateNameServers []string `json:"delegateNameServers"` FolderId int `json:"folderId"` GtdEnabled bool `json:"gtdEnabled"` NameServers []NameServers `json:"nameServers"` Updated int `json:"updated"` ProcessMulti bool `json:"processMulti"` ActiveThirdParties []string `json:"activeThirdParties"` PendingActionId int `json:"pendingActionId"` VanityId int `json:"vanityId"` VanityNameServers []VanityNameServers `json:"vanityNameServers"` }
type DomainShort ¶
type DomainShort struct { Created int `json:"created"` FolderId int `json:"folderId"` GtdEnabled bool `json:"gtdEnabled"` Updated int `json:"updated"` ProcessMulti bool `json:"processMulti"` ActiveThirdParties []string `json:"activeThirdParties"` PendingActionId int `json:"pendingActionId"` Name string `json:"name"` Id int `json:"id"` }
type DomainsList ¶
type DomainsList struct { TotalRecords int `json:"totalRecords"` TotalPackages int `json:"totalPackages"` Page int `json:"page"` Data []DomainShort `json:"data"` }
type ErrApiRequest ¶
type ErrApiRequest struct {
Err error
}
func (*ErrApiRequest) Error ¶
func (e *ErrApiRequest) Error() string
type ErrDomainExists ¶
func (*ErrDomainExists) Error ¶
func (e *ErrDomainExists) Error() string
type ErrDomainIdNotFound ¶
func (*ErrDomainIdNotFound) Error ¶
func (e *ErrDomainIdNotFound) Error() string
type ErrDomainIdOrRecordIdNotFound ¶
func (*ErrDomainIdOrRecordIdNotFound) Error ¶
func (e *ErrDomainIdOrRecordIdNotFound) Error() string
type ErrDomainIdPending ¶
func (*ErrDomainIdPending) Error ¶
func (e *ErrDomainIdPending) Error() string
type ErrDomainNotFound ¶
func (*ErrDomainNotFound) Error ¶
func (e *ErrDomainNotFound) Error() string
type ErrRecordExists ¶
func (*ErrRecordExists) Error ¶
func (e *ErrRecordExists) Error() string
type NameServers ¶
type Record ¶
type Record struct { Source int `json:"source"` Ttl int `json:"ttl"` GtdLocation string `json:"gtdLocation"` SourceId int `json:"sourceId"` Failover bool `json:"failover"` Monitor bool `json:"monitor"` HardLink bool `json:"hardLink"` DynamicDns bool `json:"dynamicDns"` Failed bool `json:"failed"` Name string `json:"name"` Value string `json:"value"` Id int `json:"id"` Type string `json:"type"` }
type RecordsList ¶
type UpdateRecord ¶
type VanityNameServers ¶
type VanityNameServers struct {
Fqdn string `json:"fqdn"`
}
Click to show internal directories.
Click to hide internal directories.