domain

package
v0.0.0-...-58d3d42 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: MIT Imports: 4 Imported by: 48

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutorenewInfo

type AutorenewInfo struct {
	Active        bool
	Contact       string
	Id            int64
	ProductId     int64
	ProductTypeId int64
}

type ContactDetails

type ContactDetails struct {
	Handle string
	Id     int64
}

type ContactInfo

type ContactInfo struct {
	Admin    *ContactDetails
	Bill     *ContactDetails
	Owner    *ContactDetails
	Reseller *ContactDetails
	Tech     *ContactDetails
}

type Domain

type Domain struct {
	*client.Client
}

func New

func New(c *client.Client) *Domain

func (*Domain) Available

func (self *Domain) Available(name string) (string, error)

Check the availability of some domain

func (*Domain) Count

func (self *Domain) Count() (int64, error)

Count domains associated to the contact represented by apikey

func (*Domain) Create

func (self *Domain) Create(name, contactHandle string, years int64) (*operation.OperationInfo, error)

Create a domain

func (*Domain) Info

func (self *Domain) Info(name string) (*DomainInfo, error)

Get domain information

func (*Domain) List

func (self *Domain) List() ([]*DomainInfoBase, error)

List domains associated to the contact represented by apikey

type DomainInfo

type DomainInfo struct {
	*DomainInfoBase
	*DomainInfoExtra
}

func ToDomainInfo

func ToDomainInfo(res map[string]interface{}) *DomainInfo

type DomainInfoBase

type DomainInfoBase struct {
	AuthInfo             string
	DateCreated          time.Time
	DateRegistryCreation time.Time
	DateRegistryEnd      time.Time
	DateUpdated          time.Time
	Fqdn                 string
	Id                   int64
	Status               []string
	Tld                  string
}

func ToDomainInfoBase

func ToDomainInfoBase(res map[string]interface{}) *DomainInfoBase

type DomainInfoExtra

type DomainInfoExtra struct {
	DateDelete           time.Time
	DateHoldBegin        time.Time
	DateHoldEnd          time.Time
	DatePendingDeleteEnd time.Time
	DateRenewBegin       time.Time
	DateRestoreEnd       time.Time
	Nameservers          []string
	Services             []string
	ZoneId               int64
	Autorenew            *AutorenewInfo
	Contacts             *ContactInfo
}

func ToDomainInfoExtra

func ToDomainInfoExtra(res map[string]interface{}) *DomainInfoExtra

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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