forked from momentohq/client-protos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
controlclient.proto
85 lines (65 loc) · 1.82 KB
/
controlclient.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
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
78
79
80
81
82
83
84
85
syntax = "proto3";
option go_package = "github.com/momentohq/client-sdk-go;client_sdk_go";
option java_multiple_files = true;
option java_package = "grpc.control_client";
option csharp_namespace = "Momento.Protos.ControlClient";
package control_client;
service ScsControl {
rpc CreateCache (_CreateCacheRequest) returns (_CreateCacheResponse) {}
rpc DeleteCache (_DeleteCacheRequest) returns (_DeleteCacheResponse) {}
rpc ListCaches (_ListCachesRequest) returns (_ListCachesResponse) {}
rpc FlushCache (_FlushCacheRequest) returns (_FlushCacheResponse) {}
rpc CreateSigningKey (_CreateSigningKeyRequest) returns (_CreateSigningKeyResponse) {}
rpc RevokeSigningKey (_RevokeSigningKeyRequest) returns (_RevokeSigningKeyResponse) {}
rpc ListSigningKeys (_ListSigningKeysRequest) returns (_ListSigningKeysResponse) {}
}
message _DeleteCacheRequest {
string cache_name = 1;
}
message _DeleteCacheResponse {
}
message _CreateCacheRequest {
string cache_name = 1;
}
message _CreateCacheResponse {
}
message _ListCachesRequest {
string next_token = 1;
}
message _Cache {
string cache_name = 1;
}
message _ListCachesResponse {
repeated _Cache cache = 1;
string next_token = 2;
}
message _CreateSigningKeyRequest {
uint32 ttl_minutes = 1;
}
message _CreateSigningKeyResponse {
string key = 1;
uint64 expires_at = 2;
}
message _RevokeSigningKeyRequest {
string key_id = 1;
}
message _RevokeSigningKeyResponse {
}
message _SigningKey {
// The id of the signing key
string key_id = 1;
// Epoch time in seconds when the signing key expires
uint64 expires_at = 2;
}
message _ListSigningKeysRequest {
string next_token = 1;
}
message _ListSigningKeysResponse {
repeated _SigningKey signing_key = 1;
string next_token = 2;
}
message _FlushCacheRequest {
string cache_name = 1;
}
message _FlushCacheResponse {
}