registry

package
v0.0.0-...-7667956 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const APILanguage = "en"
View Source
const APIVersion = "1.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Greeting epp.Greeting
	LoggedIn bool
	// contains filtered or unexported fields
}

func NewRegistryClient

func NewRegistryClient(username, password, serverHost string, serverPort int, clientKey, clientCert []byte) (*Client, error)

func (*Client) Balance

func (s *Client) Balance() (int, error)

func (*Client) ChangePassword

func (s *Client) ChangePassword() error

func (*Client) CheckContacts

func (s *Client) CheckContacts(contacts ...string) ([]epp.ItemCheck, error)

func (*Client) CheckDomains

func (s *Client) CheckDomains(domains ...string) ([]epp.ItemCheck, error)

func (*Client) CheckHosts

func (s *Client) CheckHosts(hosts ...string) ([]epp.ItemCheck, error)

func (*Client) Close

func (s *Client) Close() error

func (*Client) Connect

func (s *Client) Connect() error

func (*Client) CreateContact

func (s *Client) CreateContact(contact epp.ContactInfo) (string, error)

func (*Client) CreateDomain

func (s *Client) CreateDomain(details epp.DomainDetails) (epp.CreateData, error)

func (*Client) CreateHost

func (s *Client) CreateHost(hostname string, ipAddresses []string) (epp.CreateData, error)

func (*Client) DeleteContact

func (s *Client) DeleteContact(contactID string) error

func (*Client) DeleteDomain

func (s *Client) DeleteDomain(domain string) error

func (*Client) DeleteHost

func (s *Client) DeleteHost(hostname string) error

func (*Client) GetContact

func (s *Client) GetContact(contactId string) (epp.ContactResponse, error)

func (*Client) GetDomain

func (s *Client) GetDomain(domain string) (epp.DomainInfoResp, error)

func (*Client) GetHost

func (s *Client) GetHost(host string) (epp.HostInfoResp, error)

func (*Client) Hello

func (s *Client) Hello() (epp.Greeting, error)

func (*Client) Login

func (s *Client) Login() error

func (*Client) Logout

func (s *Client) Logout() error

func (*Client) Poll

func (s *Client) Poll() (epp.PollMessage, error)

func (*Client) PollAck

func (s *Client) PollAck(id string) (int, error)

func (*Client) Read

func (s *Client) Read() ([]byte, error)

func (*Client) RenewDomain

func (s *Client) RenewDomain(domain, currentExpiration string, years int) (epp.RenewalData, error)

func (*Client) Send

func (s *Client) Send(payload []byte) ([]byte, error)

func (*Client) SetCACertificates

func (s *Client) SetCACertificates(caCerts []byte) error

func (*Client) SetReadTimeout

func (s *Client) SetReadTimeout(seconds int) error

func (*Client) SetSendWaitTime

func (s *Client) SetSendWaitTime(dur time.Duration)

func (*Client) SetWriteTimeout

func (s *Client) SetWriteTimeout(seconds int) error

func (*Client) TransferDomain

func (s *Client) TransferDomain(domain, transferKey string, newNameservers []string) (epp.TransferData, error)

func (*Client) UpdateContact

func (s *Client) UpdateContact(contactID string, contact epp.ContactInfo) error

func (*Client) UpdateDomain

func (s *Client) UpdateDomain(update epp.DomainUpdate) error

func (*Client) UpdateDomainExtensions

func (s *Client) UpdateDomainExtensions(domain string, extUpdate epp.DomainExtension) error

func (*Client) UpdateHost

func (s *Client) UpdateHost(hostname string, addIPs, removeIPs []string) error

func (*Client) Write

func (s *Client) Write(payload []byte) error

type Credentials

type Credentials struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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