-
Notifications
You must be signed in to change notification settings - Fork 668
/
responses.go
64 lines (52 loc) · 956 Bytes
/
responses.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
// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package grpc
type identityRes struct {
id string
userID string
domainID string
}
type issueRes struct {
accessToken string
refreshToken string
accessType string
}
type authorizeRes struct {
id string
authorized bool
}
type addPolicyRes struct {
added bool
}
type addPoliciesRes struct {
added bool
}
type deletePolicyRes struct {
deleted bool
}
type deletePoliciesRes struct {
deleted bool
}
type listObjectsRes struct {
policies []string
nextPageToken string
}
type countObjectsRes struct {
count int
}
type listSubjectsRes struct {
policies []string
nextPageToken string
}
type countSubjectsRes struct {
count int
}
type listPermissionsRes struct {
Domain string
SubjectType string
Subject string
SubjectRelation string
ObjectType string
Object string
Permissions []string
}