feat: add upload chunker
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-02-18 22:25:43 +01:00
parent 6cf1a23169
commit 9cc3d80917
9 changed files with 153 additions and 34 deletions

View File

@@ -2,16 +2,25 @@ syntax = "proto3";
package flux_releaser;
service Greeter {
rpc SayHello (HelloRequest) returns (HelloReply) {}
service FluxReleaser {
rpc UploadArtifact (stream UploadArtifactRequest) returns (UploadArtifactResponse) {}
rpc CommitArtifact (CommitArtifactRequest) returns (CommitArtifactResponse) {}
}
message HelloRequest {
message UploadArtifactRequest {
bytes content = 1;
}
message UploadArtifactResponse {
string upload_id = 1;
}
message CommitArtifactRequest {
string app = 1;
string branch = 2;
string folder = 3; // Change to files instead
string folder = 3;
}
message HelloReply {
message CommitArtifactResponse {
string artifact_id = 1;
}