Documentation ¶
Index ¶
- type AuthenticateRequest
- type Client
- type Domain
- type DomainPatch
- type Domains
- type NameServer
- type NameServers
- func (nameservers *NameServers) Delete(ctx context.Context, domain, id string) (err error)
- func (nameservers *NameServers) Details(ctx context.Context, domain, id string) (result *NameServer, err error)
- func (nameservers *NameServers) Insert(ctx context.Context, domain string, nameserver ...string) (err error)
- func (nameservers *NameServers) List(ctx context.Context, domain string) (result []*NameServer, err error)
- type Options
- type User
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticateRequest ¶
type AuthenticateRequest struct { ValidationURL string `json:"validation_url,omitempty"` ConsumerKey string `json:"consumer_key,omitempty"` }
AuthenticateRequest - Authentication request.
type Client ¶
type Client struct { // User - OVH user info API client. *User // Domains - OVH domains API client. *Domains // NameServers - OVH name servers API client. *NameServers // Options - OVH API client options. *Options }
Client - OVH API Client.
func (*Client) Authenticate ¶
func (client *Client) Authenticate(ctx context.Context, callbackURL ...string) (result *AuthenticateRequest, err error)
Authenticate - Requests OVH authentiction. It is ok to use one callback url or none.
type Domain ¶
type Domain struct { Name string `json:"name,omitempty"` Offer string `json:"offer,omitempty"` WhoisOwner string `json:"whois_owner,omitempty"` LastUpdate string `json:"last_update,omitempty"` NameServerType string `json:"name_server_type,omitempty"` TransferLockStatus string `json:"transfer_lock_status,omitempty"` OwoSupported bool `json:"owo_supported,omitempty"` DnssecSupported bool `json:"dnssec_supported,omitempty"` GlueRecordIpv6Supported bool `json:"glue_record_ipv6_supported,omitempty"` GlueRecordMultiIPSupported bool `json:"glue_record_multi_ip_supported,omitempty"` NameServers []*NameServer `json:"name_servers,omitempty"` }
Domain - Domain structure.
type DomainPatch ¶
type DomainPatch struct { NameServerType string `json:"name_server_type,omitempty"` TransferLockStatus string `json:"transfer_lock_status,omitempty"` }
DomainPatch - Domain patch request.
type Domains ¶
type Domains struct { // Options - Client options. *Options }
Domains - OVH Domains API Client.
type NameServer ¶
type NameServer struct { ID string `json:"id,omitempty"` Host string `json:"host,omitempty"` ToDelete bool `json:"to_delete,omitempty"` IsUsed bool `json:"is_used,omitempty"` }
NameServer - Name Server structure.
type NameServers ¶
type NameServers struct { // Options - Client options. *Options }
NameServers - OVH Domains Name Servers API Client.
func (*NameServers) Delete ¶
func (nameservers *NameServers) Delete(ctx context.Context, domain, id string) (err error)
Delete - Deletes domain nameserver by domain name and name server ID.
func (*NameServers) Details ¶
func (nameservers *NameServers) Details(ctx context.Context, domain, id string) (result *NameServer, err error)
Details - Gets domain nameserver info by domain name and name server ID.
func (*NameServers) Insert ¶
func (nameservers *NameServers) Insert(ctx context.Context, domain string, nameserver ...string) (err error)
Insert - Inserts domain nameservers to domain.
func (*NameServers) List ¶
func (nameservers *NameServers) List(ctx context.Context, domain string) (result []*NameServer, err error)
List - Gets domain nameservers info by domain name.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.