-
Notifications
You must be signed in to change notification settings - Fork 2
/
5_tkt.go
77 lines (69 loc) · 2.21 KB
/
5_tkt.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package claim
type SockdTkt struct {
UserId string `json:"user_id,omitempty"`
Type string `json:"type,omitempty"`
DeviceId int64 `json:"device_id,omitempty"`
SessionId int64 `json:"session_id,omitempty"`
Room string `json:"room,omitempty"`
}
type RoomTagTkt struct {
Type string `json:"type"`
Tags []string `json:"tags"`
Room string `json:"room"`
Expiry int64 `json:"expiry"`
}
type PlugDevTkt struct {
TenantId string `json:"-"`
UserId string `json:"user_id"`
UserGroup string `json:"user_group"`
BprintId string `json:"bprint_id"`
PlugIds []string `json:"plug_ids"`
AllPlugs bool `json:"all_plugs"`
}
type UserMgmtTkt struct {
TenantId string `json:"-"`
Type string `json:"type"`
Group string `json:"group"`
Update bool `json:"update"`
List bool `json:"list"`
ListScope []string `json:"list_scope"`
UpdateScope []string `json:"update_scope"`
}
type PlugState struct {
TenantId string `json:"-"`
Type string `json:"type"`
UserId string `json:"user_id"`
DeviceId int64 `json:"device_id,omitempty"`
SessionId int64 `json:"session_id,omitempty"`
ExecId int64 `json:"exec_id,omitempty"`
PlugId string `json:"plug_id,omitempty"`
AgentId string `json:"agent_id,omitempty"`
KeyPrefix string `json:"key_prefix,omitempty"`
}
type BprintTkt struct {
TenantId string `json:"-"`
Type string `json:"type"`
UserId string `json:"user_id"`
DeviceId int64 `json:"device_id,omitempty"`
SessionId int64 `json:"session_id,omitempty"`
ExecId int64 `json:"exec_id,omitempty"`
PlugId string `json:"plug_id,omitempty"`
AgentId string `json:"agent_id,omitempty"`
}
type ExecModTkt struct {
TenantId string `json:"-"`
Type string `json:"type"`
UserId string `json:"user_id"`
DeviceId int64 `json:"device_id,omitempty"`
SessionId int64 `json:"session_id,omitempty"`
ExecId int64 `json:"exec_id,omitempty"`
PlugId string `json:"plug_id,omitempty"`
AgentId string `json:"agent_id,omitempty"`
ModName string `json:"mod_name,omitempty"`
}
type AdviseryTkt struct {
Type string `json:"type"`
XID string `json:"xid"`
Expiry int64 `json:"expiry"`
Data []byte `json:"data"`
}