/
model.go
34 lines (28 loc) · 895 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
package dashboard
import (
"github.com/TykTechnologies/tyk-operator/api/model"
v1 "github.com/TykTechnologies/tyk-operator/api/v1alpha1"
)
type ApisResponse struct {
Apis []DashboardApi `json:"apis"`
Pages int `json:"pages"`
}
type DashboardApi struct {
CreatedAt string `json:"created_at,omitempty"`
ApiDefinition model.APIDefinitionSpec `json:"api_definition"`
UserOwners []string `json:"user_owners"`
UserGroupOwners []string `json:"user_group_owners"`
}
type PoliciesResponse struct {
Policies []v1.SecurityPolicySpec `json:"data"`
Pages int `json:"pages"`
}
type CertErrorResponse struct {
Status string `json:"Status"`
Message string `json:"Message"`
}
type CertResponse struct {
Id string `json:"id"`
Message string `json:"message"`
Status string `json:"status"`
}