Documentation ¶
Index ¶
- type Client
- func (s *Client) CreateDnsRecord(domainId int, newRecord Dns) (*DnsSaveResponse, error)
- func (s *Client) CreateHttpForward(domainId int, newForward HttpForward) (*HttpForward, error)
- func (s *Client) Delete(endpoint string) ([]byte, error)
- func (s *Client) DeleteDnsRecord(domainId, recordId int) (*DnsSaveResponse, error)
- func (s *Client) DeleteHttpForward(domainId int, host string) (*HttpForward, error)
- func (s *Client) Get(endpoint string, params interface{}) ([]byte, error)
- func (s *Client) GetDnsRecordById(domainId, recordId int) (*Dns, error)
- func (s *Client) GetDomainById(domainId int) (*Domain, error)
- func (s *Client) GetHttpForwardByHost(domainId int, host string) (*HttpForward, error)
- func (s *Client) GetInvoiceByInvoiceNumber(invoiceId int) (*Invoice, error)
- func (s *Client) ListDnsRecords(domainId int, params ListDnsRecordsParams) (*[]Dns, error)
- func (s *Client) ListDomains(params ListDomainsParams) (*[]Domain, error)
- func (s *Client) ListHttpForwards(domainId int) (*[]HttpForward, error)
- func (s *Client) ListInvoices(params ListInvoicesParams) (*[]Invoice, error)
- func (s *Client) Post(endpoint string, message []byte) ([]byte, error)
- func (s *Client) Put(endpoint string, message []byte) ([]byte, error)
- func (s *Client) Request(options RequestOptions) ([]byte, error)
- func (s *Client) UpdateDDns(params UpdateDDnsParams) (*interface{}, error)
- func (s *Client) UpdateDnsRecord(domainId, recordId int, updatedRecord Dns) (*DnsSaveResponse, error)
- func (s *Client) UpdateHttpForward(domainId int, host string, updatedForward HttpForward) (*HttpForward, error)
- type Dns
- type DnsSaveResponse
- type Domain
- type DomainServices
- type HttpForward
- type Invoice
- type ListDnsRecordsParams
- type ListDomainsParams
- type ListInvoicesParams
- type RequestOptions
- type UpdateDDnsParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateDnsRecord ¶
func (s *Client) CreateDnsRecord(domainId int, newRecord Dns) (*DnsSaveResponse, error)
https://api.domeneshop.no/docs/#tag/dns/paths/~1domains~1{domainId}~1dns/post
func (*Client) CreateHttpForward ¶
func (s *Client) CreateHttpForward(domainId int, newForward HttpForward) (*HttpForward, error)
https://api.domeneshop.no/docs/#tag/forwards/paths/~1domains~1{domainId}~1forwards~1/post
func (*Client) DeleteDnsRecord ¶
func (s *Client) DeleteDnsRecord(domainId, recordId int) (*DnsSaveResponse, error)
https://api.domeneshop.no/docs/#tag/dns/paths/~1domains~1{domainId}~1dns~1{recordId}/delete
func (*Client) DeleteHttpForward ¶
func (s *Client) DeleteHttpForward(domainId int, host string) (*HttpForward, error)
https://api.domeneshop.no/docs/#tag/forwards/paths/~1domains~1{domainId}~1forwards~1{host}/delete
func (*Client) GetDnsRecordById ¶
func (*Client) GetDomainById ¶
https://api.domeneshop.no/docs/#tag/domains/paths/~1domains~1{domainId}/get
func (*Client) GetHttpForwardByHost ¶ added in v0.2.0
func (s *Client) GetHttpForwardByHost(domainId int, host string) (*HttpForward, error)
https://api.domeneshop.no/docs/#tag/forwards/paths/~1domains~1{domainId}~1forwards~1{host}/get
func (*Client) GetInvoiceByInvoiceNumber ¶
https://api.domeneshop.no/docs/#operation/findInvoiceByNumber
func (*Client) ListDnsRecords ¶
func (s *Client) ListDnsRecords(domainId int, params ListDnsRecordsParams) (*[]Dns, error)
func (*Client) ListDomains ¶
func (s *Client) ListDomains(params ListDomainsParams) (*[]Domain, error)
func (*Client) ListHttpForwards ¶
func (s *Client) ListHttpForwards(domainId int) (*[]HttpForward, error)
https://api.domeneshop.no/docs/#tag/forwards/paths/~1domains~1{domainId}~1forwards~1/get
func (*Client) ListInvoices ¶
func (s *Client) ListInvoices(params ListInvoicesParams) (*[]Invoice, error)
func (*Client) Request ¶
func (s *Client) Request(options RequestOptions) ([]byte, error)
Base Request func, used by higher level request interfaces
func (*Client) UpdateDDns ¶ added in v0.2.0
func (s *Client) UpdateDDns(params UpdateDDnsParams) (*interface{}, error)
https://api.domeneshop.no/docs/#tag/ddns/paths/~1dyndns~1update/get As the api is not ready, assume that it is successfull if no error is returned
func (*Client) UpdateDnsRecord ¶
func (s *Client) UpdateDnsRecord(domainId, recordId int, updatedRecord Dns) (*DnsSaveResponse, error)
https://api.domeneshop.no/docs/#tag/dns/paths/~1domains~1{domainId}~1dns~1{recordId}/put
func (*Client) UpdateHttpForward ¶
func (s *Client) UpdateHttpForward(domainId int, host string, updatedForward HttpForward) (*HttpForward, error)
https://api.domeneshop.no/docs/#tag/forwards/paths/~1domains~1{domainId}~1forwards~1{host}/put
type DnsSaveResponse ¶ added in v0.2.0
type DnsSaveResponse struct {
Id int `json:"id"`
}
type Domain ¶
type Domain struct { Id int `json:"id"` Domain string `json:"domain"` ExpiryDate string `json:"expiry_date"` RegisteredDate string `json:"registered_date"` Renew bool `json:"renew"` Registrant string `json:"registrant"` Status string `json:"status"` Nameservers []string `json:"nameservers"` Services DomainServices `json:"services"` }
type DomainServices ¶
type HttpForward ¶
type ListDnsRecordsParams ¶
type ListDomainsParams ¶
type ListDomainsParams struct {
Tld string `url:"tld,omitempty"`
}
type ListInvoicesParams ¶
type ListInvoicesParams struct {
Status string `url:"status,omitempty"`
}
type RequestOptions ¶
type RequestOptions struct {
// contains filtered or unexported fields
}