Documentation
¶
Overview ¶
Code generated by model_paginated_gen. DO NOT EDIT.
Index ¶
- type Domain
- type DomainNotFoundError
- type GetDomainResponseBody
- type GetDomainsResponseBody
- type GetNameserversResponseBody
- type GetWhoisRawResponseBody
- type GetWhoisResponseBody
- type Nameserver
- type PaginatedDomain
- type Registrar
- type RegistrarService
- type Service
- func (s *Service) GetDomain(domainName string) (Domain, error)
- func (s *Service) GetDomainNameservers(domainName string) ([]Nameserver, error)
- func (s *Service) GetDomains(parameters connection.APIRequestParameters) ([]Domain, error)
- func (s *Service) GetDomainsPaginated(parameters connection.APIRequestParameters) (*PaginatedDomain, error)
- func (s *Service) GetWhois(domainName string) (Whois, error)
- func (s *Service) GetWhoisRaw(domainName string) (string, error)
- type Whois
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Domain ¶ added in v1.0.6
type Domain struct { Name string `json:"name"` Status string `json:"status"` Registrar string `json:"registrar"` RegisteredAt connection.Date `json:"registered_at"` UpdatedAt connection.Date `json:"updated_at"` RenewalAt connection.Date `json:"renewal_at"` AutoRenew bool `json:"auto_renew"` WHOISPrivacy bool `json:"whois_privacy"` }
Domain represents a UKFast domain
type DomainNotFoundError ¶ added in v1.0.6
type DomainNotFoundError struct {
Name string
}
DomainNotFoundError indicates a domain was not found
func (*DomainNotFoundError) Error ¶ added in v1.0.6
func (e *DomainNotFoundError) Error() string
type GetDomainResponseBody ¶ added in v1.0.6
type GetDomainResponseBody struct { connection.APIResponseBody Data Domain `json:"data"` }
GetDomainResponseBody represents the API response body from the GetDomain resource
type GetDomainsResponseBody ¶ added in v1.0.6
type GetDomainsResponseBody struct { connection.APIResponseBody Data []Domain `json:"data"` }
GetDomainsResponseBody represents the API response body from the GetDomains resource
type GetNameserversResponseBody ¶ added in v1.0.6
type GetNameserversResponseBody struct { connection.APIResponseBody Data []Nameserver `json:"data"` }
GetNameserversResponseBody represents the API response body from the GetNameservers resource
type GetWhoisRawResponseBody ¶ added in v1.0.6
type GetWhoisRawResponseBody struct { connection.APIResponseBody Data string `json:"data"` }
GetWhoisRawResponseBody represents the API response body from the GetWhoisRaw resource
type GetWhoisResponseBody ¶ added in v1.0.6
type GetWhoisResponseBody struct { connection.APIResponseBody Data Whois `json:"data"` }
GetWhoisResponseBody represents the API response body from the GetWhois resource
type Nameserver ¶ added in v1.0.6
type Nameserver struct { Host string `json:"host"` IP connection.IPAddress `json:"ip"` }
Nameserver represents a nameserver
type PaginatedDomain ¶ added in v1.1.0
type PaginatedDomain struct { *connection.PaginatedBase Items []Domain }
PaginatedDomain represents a paginated collection of Domain
func NewPaginatedDomain ¶ added in v1.1.0
func NewPaginatedDomain(getFunc connection.PaginatedGetFunc, parameters connection.APIRequestParameters, pagination connection.APIResponseMetadataPagination, items []Domain) *PaginatedDomain
NewPaginatedDomain returns a pointer to an initialized PaginatedDomain struct
type RegistrarService ¶
type RegistrarService interface { // Domains // GetDomains(parameters connection.APIRequestParameters) ([]Domain, error) GetDomainsPaginated(parameters connection.APIRequestParameters) (*PaginatedDomain, error) GetDomain(domainName string) (Domain, error) GetDomainNameservers(domainName string) ([]Nameserver, error) // WHOIS // GetWhois(domainName string) (Whois, error) GetWhoisRaw(domainName string) (string, error) }
RegistrarService is an interface for managing the registrar service
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements RegistrarService for managing registrar services via the UKFast API
func NewService ¶
func NewService(connection connection.Connection) *Service
NewService returns a new instance of Service
func (*Service) GetDomainNameservers ¶ added in v1.0.6
func (s *Service) GetDomainNameservers(domainName string) ([]Nameserver, error)
GetDomainNameservers retrieves the nameservers for a domain
func (*Service) GetDomains ¶ added in v1.0.6
func (s *Service) GetDomains(parameters connection.APIRequestParameters) ([]Domain, error)
GetDomains retrieves a list of domains
func (*Service) GetDomainsPaginated ¶ added in v1.0.6
func (s *Service) GetDomainsPaginated(parameters connection.APIRequestParameters) (*PaginatedDomain, error)
GetDomainsPaginated retrieves a paginated list of domains
type Whois ¶ added in v1.0.6
type Whois struct { Name string `json:"name"` Status []string `json:"status"` CreatedAt connection.DateTime `json:"created_at"` UpdatedAt connection.DateTime `json:"updated_at"` ExpiresAt connection.DateTime `json:"expires_at"` Nameservers []Nameserver `json:"nameservers"` Registrar Registrar `json:"registrar"` }
Whois represents WHOIS information