forked from kyma-project/kyma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.go
executable file
·35 lines (29 loc) · 857 Bytes
/
model.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
package externalapi
type certRequest struct {
CSR string `json:"csr"`
}
type certResponse struct {
CRT string `json:"crt"`
}
type infoResponse struct {
SignUrl string `json:"csrUrl"`
Api api `json:"api"`
CertificateInfo certInfo `json:"certificate"`
}
type api struct {
MetadataURL string `json:"metadataUrl"`
EventsURL string `json:"eventsUrl"`
CertificatesUrl string `json:"certificatesUrl"`
}
type certInfo struct {
Subject string `json:"subject"`
Extensions string `json:"extensions"`
KeyAlgorithm string `json:"key-algorithm"`
}
type csrInfo struct {
Country string `json:"country"`
Organization string `json:"organization"`
OrganizationalUnit string `json:"organizationalUnit"`
Locality string `json:"locality"`
Province string `json:"province"`
}