mirror of
https://github.com/usememos/memos.git
synced 2024-11-15 03:07:04 +08:00
28 lines
581 B
Protocol Buffer
28 lines
581 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package memos.store;
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
option go_package = "gen/store";
|
|
|
|
enum ResourceStorageType {
|
|
RESOURCE_STORAGE_TYPE_UNSPECIFIED = 0;
|
|
LOCAL = 1;
|
|
S3 = 2;
|
|
EXTERNAL = 3;
|
|
}
|
|
|
|
message ResourcePayload {
|
|
oneof payload {
|
|
S3Object s3_object = 1;
|
|
}
|
|
|
|
message S3Object {
|
|
// key is the S3 object key.
|
|
string key = 1;
|
|
// last_presigned_time is the last time the object was presigned.
|
|
// This is used to determine if the presigned URL is still valid.
|
|
google.protobuf.Timestamp last_presigned_time = 2;
|
|
}
|
|
}
|