-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcache.proto
More file actions
42 lines (34 loc) · 917 Bytes
/
cache.proto
File metadata and controls
42 lines (34 loc) · 917 Bytes
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
syntax = "proto3";
package github.actions.results.api.v1;
option go_package = "./contracts";
import "cache_metadata.proto";
message CreateCacheEntryRequest {
github.actions.results.entities.v1.CacheMetadata metadata = 1;
string key = 2;
string version = 3;
}
message CreateCacheEntryResponse {
bool ok = 1;
string signed_upload_url = 2;
}
message FinalizeCacheEntryUploadRequest {
github.actions.results.entities.v1.CacheMetadata metadata = 1;
string key = 2;
int64 size_bytes = 3;
string version = 4;
}
message FinalizeCacheEntryUploadResponse {
bool ok = 1;
int64 entry_id = 2;
}
message GetCacheEntryDownloadURLRequest {
github.actions.results.entities.v1.CacheMetadata metadata = 1;
string key = 2;
repeated string restore_keys = 3;
string version = 4;
}
message GetCacheEntryDownloadURLResponse {
bool ok = 1;
string signed_download_url = 2;
string matched_key = 3;
}