Documentation ¶
Index ¶
- type APIError
- type AddRecord
- type AddRecordResponse
- type Client
- func (c *Client) AddRecord(ctx context.Context, domainName, account, newRecordID string, record Record) (*AddRecord, error)
- func (c *Client) DeleteRecord(ctx context.Context, domainName, account, dnsRecord, recordID string) error
- func (c *Client) ListRecords(ctx context.Context, account, dnsZone string) (*ListRecordsResponse, error)
- func (c *Client) StatusDomain(ctx context.Context, domain string) (*StatusResponse, error)
- type ListRecordsResponse
- type Record
- type Response
- type StatusResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type AddRecord ¶
type AddRecord struct { Response AddRecordResponse `json:"response"` Record string `json:"record"` Code int `json:"code"` Status string `json:"status"` Error string `json:"error"` }
type AddRecordResponse ¶
type Client ¶
Client a BrandIT DNS API client.
func (*Client) AddRecord ¶
func (c *Client) AddRecord(ctx context.Context, domainName, account, newRecordID string, record Record) (*AddRecord, error)
AddRecord adds a DNS record. https://portal.brandit.com/apidocv3#addDNSRR
func (*Client) DeleteRecord ¶
func (c *Client) DeleteRecord(ctx context.Context, domainName, account, dnsRecord, recordID string) error
DeleteRecord deletes a DNS record. https://portal.brandit.com/apidocv3#deleteDNSRR
func (*Client) ListRecords ¶
func (c *Client) ListRecords(ctx context.Context, account, dnsZone string) (*ListRecordsResponse, error)
ListRecords lists all records. https://portal.brandit.com/apidocv3#listDNSRR
func (*Client) StatusDomain ¶
StatusDomain returns the status of a domain and account associated with it. https://portal.brandit.com/apidocv3#statusDomain
type ListRecordsResponse ¶
type StatusResponse ¶
type StatusResponse struct { RenewalMode []string `json:"renewalmode"` Status []string `json:"status"` TransferLock []int `json:"transferlock"` Registrar []string `json:"registrar"` PaidUntilDate []string `json:"paiduntildate"` Nameserver []string `json:"nameserver"` RegistrationExpirationDate []string `json:"registrationexpirationdate"` Domain []string `json:"domain"` RenewalDate []string `json:"renewaldate"` UpdatedDate []string `json:"updateddate"` BillingContact []string `json:"billingcontact"` XDomainRoID []string `json:"x-domain-roid"` AdminContact []string `json:"admincontact"` TechContact []string `json:"techcontact"` DomainIDN []string `json:"domainidn"` CreatedDate []string `json:"createddate"` RegistrarTransferDate []string `json:"registrartransferdate"` Zone []string `json:"zone"` Auth []string `json:"auth"` UpdatedBy []string `json:"updatedby"` RoID []string `json:"roid"` OwnerContact []string `json:"ownercontact"` CreatedBy []string `json:"createdby"` TransferMode []string `json:"transfermode"` }
Click to show internal directories.
Click to hide internal directories.