forked from EntrustCorporation/cagw-vault-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile_response.go
33 lines (27 loc) · 882 Bytes
/
profile_response.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
/*
* Copyright (c) 2020 Entrust Datacard Corporation.
* All rights reserved.
*/
package main
type ProfileResponse struct {
Profile Profile `json:"profile"`
Message Message `json:"message"`
}
type ProfilesResponse struct {
Profiles []Profile `json:"profiles"`
Message Message `json:"message"`
}
type Profile struct {
Id string `json:"id"`
Name string `json:"name"`
SubjectVariableRequirements []SubjectVariableRequirement `json:"subjectVariableRequirements"`
SubjectAltNameRequirements []SubjectAltNameRequirement `json:"subjectAltNameRequirements"`
}
type SubjectVariableRequirement struct {
Name string `json:"name"`
Required bool `json:"required"`
}
type SubjectAltNameRequirement struct {
Type string `json:"type"`
Required bool `json:"required"`
}