-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
171 lines (125 loc) · 6.06 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
package main
import (
"namecomgo/examples"
)
// NOTES
// For these examples, you will need to change the parameters in some methods to
// reflect your testing or production environment.
// For example, the GetAuthCodeForDomainExample needs a domain you have registered
// in your specified environment (test or prod). For ListDomainsExample, you will
// not get anything back unless you have domains registered.
// Also, to allow these examples to work without a bunch of changing of strings,
// we are creating random strings for things like records and url forwarding. In
// production, obviously, you would use your own, real, values.
// END NOTES
func main() {
// ////////////////////////////////
// Simple server "Hello"
examples.HelloExample()
// ////////////////////////////////
// List all domains in your account
// examples.ListDomainsExample()
// ////////////////////////////////
// Retrieve transfer auth code for a registered domain in your account
// examples.GetAuthCodeForDomainExample()
// ////////////////////////////////
// Search for unregistered domains using a keyword
// examples.SearchExample()
// Executes a search returning results as retrieved from the registry
// examples.SearchStreamExample()
// ////////////////////////////////
// Check the availability of 1-n domain names (NOTE: Name's API needs domain names
// to be all lowercase. Issue submitted)
// examples.CheckAvailabilityExample()
// List all DNS records for a domain you have in the account
// examples.ListRecordsExample()
// ////////////////////////////////
// Create a DNS record for a domain you have registered
// examples.CreateRecordExample()
// ////////////////////////////////
// Retrieve a specific DNS record for a domain you have registered
// examples.GetRecordExample()
// ////////////////////////////////
// Update a DNS record for a domain you have registered
// examples.UpdateRecordExample()
// ////////////////////////////////
// Delete a DNS record for a domain you have registered
// examples.DeleteRecordExample()
// ////////////////////////////////
// Enable AutoRenew for a domain you have registered
// examples.EnableAutoRenewExample()
// ////////////////////////////////
// Disable AutoRenew for a domain you have registered
// examples.DisableAutoRenewExample()
// ////////////////////////////////
// Create a URL forward for a domain you have registered
// examples.CreateURLForwardingExample()
// ////////////////////////////////
//List all forwarding for a domain you have registered
// examples.ListURLForwardingsExample()
// ////////////////////////////////
// Get a URL forward for a domain you have registered
// examples.GetURLForwardingExample()
// ////////////////////////////////
// Update a URL forward for a domain you have registered
// examples.UpdateURLForwardingExample()
// ////////////////////////////////
// Delete a URL forward for a domain you have registered
// examples.DeleteURLForwardingExample()
// ////////////////////////////////
// Retrieve details for a domain you have registered
// examples.GetDomainExample()
// ////////////////////////////////
// Lock a domain you have registered
// examples.LockDomainExample()
// ////////////////////////////////
// Unock a domain you have registered
// examples.UnlockDomainExample()
// ////////////////////////////////
// Register a domain
// examples.CreateDomainExample()
// ////////////////////////////////
// Purchase privacy for a domain you have registered
// examples.PurchasePrivacyExample()
// List DNSSEC's added for a domain you have registered
// examples.ListDNSSECsExample()
// Create a DNSSEC entry for a domain you have registered
// Note: if exact entry already exists, 500 server error occurrs
// examples.CreateDNSSECExample()
// Get a specific DNSSEC entry for a domain you have registered
// examples.GetDNSSECExample()
// Delete a specific DNSSEC entry for a domain you have registered
// examples.DeleteDNSSECExample()
// Configure Name Servers for a domain you have registered
// examples.SetNameServersExample()
// Set contact information for a domain you have registered (broken, API issue)
// examples.SetContactsExample()
// Configure email forwarding for a domain you have registered
// examples.CreateEmailForwardingExample()
// List all email forwarding for a domain you have registered
// examples.ListEmailForwardingsExample()
// Get specific email forwarding for a domain you have registered
// examples.GetEmailForwardingExample()
// Update specific email forwarding for a domain you have registered
// examples.UpdateEmailForwardingExample()
// Delete specific email forwarding for a domain you have registered
// examples.DeleteEmailForwardingExample()
// List vanity Nameservers for a domain you have registered
// examples.ListVanityNameserversExample()
// Create Vanity Server entry for a domain you have registered
// examples.CreateVanityNameserverExample()
// Get specific Vanity Server entry for a domain you have registered
// examples.GetVanityNameserverExample()
// Update specific Vanity Server entry for a domain you have registered
// examples.UpdateVanityNameserverExample()
// Delete specific Vanity Server entry for a domain you have registered
// examples.DeleteVanityNameserverExample()
// List all transfers in the account
// examples.ListTransfersExample()
// Get a specific Transfer in the account
// examples.GetTransferExample()
// Create a Transfer in the account
// examples.CreateTransferExample()
// Cancel a Transfer in the account
// examples.CancelTransferExample()
}