aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/tvmauth/src/protos/tvm_keys.proto
blob: 9ba42dbf8057c7ff5de7d4844e7ab5afd05d47c9 (plain) (blame)
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
package tvm_keys;

option go_package = "a.yandex-team.ru/library/cpp/tvmauth/src/protos";

enum KeyType {
    RabinWilliams = 0;
}

enum BbEnvType {
   Prod = 0;
   Test = 1;
   ProdYateam = 2;
   TestYateam = 3;
   Stress = 4;
}

message General {
    required uint32 id = 1;
    required KeyType type = 2;
    required bytes body = 3;
    optional int64 createdTime = 4;
}

message BbKey {
    required General gen = 1;
    required BbEnvType env = 2;
}

message TvmKey {
    required General gen = 1;
}

message Keys {
    repeated BbKey bb = 1;
    repeated TvmKey tvm = 2;
}