-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathremote.proto
47 lines (38 loc) · 899 Bytes
/
remote.proto
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
syntax = "proto3";
option go_package = "github.com/lpegoraro/password-manager/remote";
service PasswordManager {
rpc Add(AddPasswordReq) returns (PasswordValue);
rpc Get(GetPasswordReq) returns (PasswordValue);
}
service Tenant {
rpc Connect(AddTenantReq) returns (TenantValue);
}
message AddPasswordReq {
string tag = 1;
string username = 2;
Configuration overrideConfiguration = 3;
}
message Configuration {
string method = 1;
string seed = 2;
int32 factor = 3;
string storage = 4;
bool output = 5;
}
message GetPasswordReq {
string tag = 1;
string username = 2;
}
message PasswordValue {
string password = 1;
string fingerprint = 2;
}
message AddTenantReq {
string pubKey = 1;
string tenantName = 2;
Configuration initialConfiguration = 3;
}
message TenantValue {
string port = 1;
string fingerprint = 2;
}