resource.proto 656 B

123456789101112131415161718192021222324252627282930
  1. syntax = "proto3";
  2. package memos.store;
  3. import "google/protobuf/timestamp.proto";
  4. import "store/workspace_setting.proto";
  5. option go_package = "gen/store";
  6. enum ResourceStorageType {
  7. RESOURCE_STORAGE_TYPE_UNSPECIFIED = 0;
  8. LOCAL = 1;
  9. S3 = 2;
  10. EXTERNAL = 3;
  11. }
  12. message ResourcePayload {
  13. oneof payload {
  14. S3Object s3_object = 1;
  15. }
  16. message S3Object {
  17. StorageS3Config s3_config = 1;
  18. // key is the S3 object key.
  19. string key = 2;
  20. // last_presigned_time is the last time the object was presigned.
  21. // This is used to determine if the presigned URL is still valid.
  22. google.protobuf.Timestamp last_presigned_time = 3;
  23. }
  24. }