registrar

package
v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Code generated by model_paginated_gen. DO NOT EDIT.

Index

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

NewPaginatedDomain returns a pointer to an initialized PaginatedDomain struct

type Registrar added in v1.0.6

type Registrar struct {
	Name string `json:"name"`
	URL  string `json:"url"`
	Tag  string `json:"tag"`
}

Registrar represents registrar details

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) GetDomain added in v1.0.6

func (s *Service) GetDomain(domainName string) (Domain, error)

GetDomain retrieves a single domain by name

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

func (*Service) GetWhois added in v1.0.6

func (s *Service) GetWhois(domainName string) (Whois, error)

GetWhois retrieves WHOIS information for a single domain

func (*Service) GetWhoisRaw added in v1.0.6

func (s *Service) GetWhoisRaw(domainName string) (string, error)

GetWhoisRaw retrieves raw WHOIS information for a single domain

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL