-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
25 lines (22 loc) · 964 Bytes
/
models.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
package internal
import "time"
type AuditObject struct {
UserId string `json:"userId"`
RequestId string `json:"requestId"`
Description string `json:"description"`
RequestTime time.Time `json:"requestTime"`
ApprovingUser string `json:"approvingUser"`
ApprovalMessages []ApprovalMsgObj `json:"approvalMessages"`
CloudUserId string `json:"cloudUserId"`
LoginRole string `json:"loginRole"`
AccountRole string `json:"accountRole"`
AccountId string `json:"accountId"`
Duration string `json:"duration"`
Services []string `json:"services"`
Actions map[string][]string `json:"actions"`
Resources map[string][]string `json:"resources"`
}
type ApprovalMsgObj struct {
Ts string `json:"ts"`
Channel string `json:"channel"`
}