-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
43 lines (36 loc) · 957 Bytes
/
types.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
package cert
// Acme file type
type Acme map[string]Resolver
// Resolver cert resolver
type Resolver struct {
Account Account `json:"Account"`
Certificates []Certificate `json:"Certificates"`
}
// Certificate a certificate
type Certificate struct {
Domain Domain `json:"domain"`
Certificate string `json:"certificate"`
Key string `json:"key"`
Store string `json:"Store"`
}
// Domain cert domain
type Domain struct {
Main string `json:"main"`
}
// Account resolver account
type Account struct {
Email string `json:"Email"`
Registration Registration `json:"Registration"`
PrivateKey string `json:"PrivateKey"`
KeyType string `json:"KeyType"`
}
// Registration account registration
type Registration struct {
Body Body `json:"body"`
URI string `json:"uri"`
}
// Body registration body
type Body struct {
Status string `json:"status"`
Contact []string `json:"contact"`
}