Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
177 changes: 167 additions & 10 deletions internal/pb/cache.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions internal/pb/cache.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,21 @@ option go_package = "github.com/gadget-inc/dateilager/pkg/pb";

service Cached {
rpc PopulateDiskCache(PopulateDiskCacheRequest) returns (PopulateDiskCacheResponse);
rpc AssignPod(AssignPodRequest) returns (AssignPodResponse);
}

message PopulateDiskCacheRequest { string path = 1; }

message PopulateDiskCacheResponse { int64 version = 1; };

message AssignPodRequest {
int64 applicationId = 1;
int64 environmentId = 2;
int64 environmentVersion = 3;
string podUuid = 4;
optional string volumeName = 5;
optional string podVolumePath = 6; // If provided, we will use this as the volume path for the pod
string cachePath = 7; // If provided, we will use this as the cache path for the pod
}

message AssignPodResponse { };
38 changes: 38 additions & 0 deletions internal/pb/cache_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading