mirror of
https://github.com/harness/drone.git
synced 2025-05-05 22:53:07 +08:00

* initial work on commit files * minor improvements, grpc server interceptors and more * compare file old sha and current sha * added some validation steps * config immutable, introduce temp repos dir * handler added to standalone * fix CI linter, fix minor bug on update * wire generator files
45 lines
673 B
Protocol Buffer
45 lines
673 B
Protocol Buffer
syntax = "proto3";
|
|
package rpc;
|
|
|
|
option go_package = "github.com/harness/gitness/gitrpc/rpc";
|
|
|
|
message FileUpload{
|
|
oneof data {
|
|
FileUploadHeader header = 1;
|
|
Chunk chunk = 2;
|
|
}
|
|
}
|
|
|
|
message FileUploadHeader {
|
|
string path = 1;
|
|
}
|
|
|
|
message Chunk {
|
|
bool eof = 1;
|
|
bytes data = 2;
|
|
}
|
|
|
|
enum SortOrder {
|
|
Default = 0;
|
|
Asc = 1;
|
|
Desc = 2;
|
|
}
|
|
|
|
message Commit {
|
|
string sha = 1;
|
|
string title = 2;
|
|
string message = 3;
|
|
Signature author = 4;
|
|
Signature committer = 5;
|
|
}
|
|
|
|
message Signature {
|
|
Identity identity = 1;
|
|
int64 when = 2;
|
|
}
|
|
|
|
message Identity {
|
|
string name = 1;
|
|
string email = 2;
|
|
}
|