-
Notifications
You must be signed in to change notification settings - Fork 1
/
type.go
58 lines (52 loc) · 2.24 KB
/
type.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
package metact
type Certificate struct {
Id string `json:"id,omitempty"`
AuthorityKeyIdentifier string `json:"authority_key_identifier,omitempty"`
BasicConstraints string `json:"basic_constraints,omitempty"`
CertHashMd5 string `json:"cert_hash_md5,omitempty"`
CertHashSha1 string `json:"cert_hash_sha1,omitempty"`
CertHashSha256 string `json:"cert_hash_sha256,omitempty"`
CertificatePem string `json:"certificate_pem,omitempty"`
Domains []string `json:"domains,omitempty"`
ExtendedKeyUsage string `json:"extended_key_usage,omitempty"`
Extensions []KeyValue `json:"extensions,omitempty"`
IssuerName string `json:"issuer_name,omitempty"`
KeyUsage string `json:"key_usage,omitempty"`
NotValidAfter string `json:"not_valid_after,omitempty"`
NotValidBefore string `json:"not_valid_before,omitempty"`
PublicKeyAlgorithm string `json:"public_key_algorithm,omitempty"`
PublicKeyHashSha256 string `json:"public_key_hash_sha256,omitempty"`
PublicKeyPem string `json:"public_key_pem,omitempty"`
PublicKeySize int `json:"public_key_size,omitempty"`
PublicKeyValues []KeyValue `json:"public_key_values,omitempty"`
SerialNumber string `json:"serial_number,omitempty"`
SignatureAlgorithm string `json:"signature_algorithm,omitempty"`
SignatureValue string `json:"signature_value,omitempty"`
SubjectKeyIdentifier string `json:"subject_key_identifier,omitempty"`
SubjectName string `json:"subject_name,omitempty"`
Version int `json:"version,omitempty"`
}
type Paging struct {
Cursors struct {
Before string `json:"before"`
After string `json:"after"`
} `json:"causers"`
}
type KeyValue struct {
Key string `json:"key"`
Value string `json:"value"`
}
type SubscribeResp struct {
Success bool `json:"success"`
}
type SubscribeListResp struct {
Data []struct {
Id string `json:"id"`
Domain string `json:"domain"`
} `json:"data"`
Paging `json:"paging"`
}
type CertificatesResp struct {
Data []Certificate `json:"data"`
Paging `json:"paging"`
}