Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save edef1c/b84a28006fb9ccafd77bc3074771696d to your computer and use it in GitHub Desktop.
Save edef1c/b84a28006fb9ccafd77bc3074771696d to your computer and use it in GitHub Desktop.
skill issue
syntax = "proto3";
package github.actions.results.api.v1;
import "github__actions__results__entities__v1__cachemetadata.proto";
service CacheService {
rpc CreateCacheEntry(CreateCacheEntryRequest) returns (CreateCacheEntryResponse);
rpc FinalizeCacheEntryUpload(FinalizeCacheEntryUploadRequest) returns (FinalizeCacheEntryUploadResponse);
rpc GetCacheEntryDownloadURL(GetCacheEntryDownloadURLRequest) returns (GetCacheEntryDownloadURLResponse);
}
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;
}
syntax = "proto3";
package github.actions.results.entities.v1;
import "github__actions__results__entities__v1__cachescope.proto";
message CacheMetadata {
int64 repository_id = 1;
repeated github.actions.results.entities.v1.CacheScope scope = 2;
}
syntax = "proto3";
package github.actions.results.entities.v1;
message CacheScope {
string scope = 1;
int64 permission = 2;
}

Comments are disabled for this gist.