gitea源码

artifact.proto 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. syntax = "proto3";
  2. import "google/protobuf/timestamp.proto";
  3. import "google/protobuf/wrappers.proto";
  4. package github.actions.results.api.v1;
  5. message CreateArtifactRequest {
  6. string workflow_run_backend_id = 1;
  7. string workflow_job_run_backend_id = 2;
  8. string name = 3;
  9. google.protobuf.Timestamp expires_at = 4;
  10. int32 version = 5;
  11. }
  12. message CreateArtifactResponse {
  13. bool ok = 1;
  14. string signed_upload_url = 2;
  15. }
  16. message FinalizeArtifactRequest {
  17. string workflow_run_backend_id = 1;
  18. string workflow_job_run_backend_id = 2;
  19. string name = 3;
  20. int64 size = 4;
  21. google.protobuf.StringValue hash = 5;
  22. }
  23. message FinalizeArtifactResponse {
  24. bool ok = 1;
  25. int64 artifact_id = 2;
  26. }
  27. message ListArtifactsRequest {
  28. string workflow_run_backend_id = 1;
  29. string workflow_job_run_backend_id = 2;
  30. google.protobuf.StringValue name_filter = 3;
  31. google.protobuf.Int64Value id_filter = 4;
  32. }
  33. message ListArtifactsResponse {
  34. repeated ListArtifactsResponse_MonolithArtifact artifacts = 1;
  35. }
  36. message ListArtifactsResponse_MonolithArtifact {
  37. string workflow_run_backend_id = 1;
  38. string workflow_job_run_backend_id = 2;
  39. int64 database_id = 3;
  40. string name = 4;
  41. int64 size = 5;
  42. google.protobuf.Timestamp created_at = 6;
  43. }
  44. message GetSignedArtifactURLRequest {
  45. string workflow_run_backend_id = 1;
  46. string workflow_job_run_backend_id = 2;
  47. string name = 3;
  48. }
  49. message GetSignedArtifactURLResponse {
  50. string signed_url = 1;
  51. }
  52. message DeleteArtifactRequest {
  53. string workflow_run_backend_id = 1;
  54. string workflow_job_run_backend_id = 2;
  55. string name = 3;
  56. }
  57. message DeleteArtifactResponse {
  58. bool ok = 1;
  59. int64 artifact_id = 2;
  60. }