feat(proto): add headObject to storage plugin service
This commit is contained in:
1 parent
52fbc6410c
commit
39f3e391ae
3 files changed
+400
-174
No files matched your search
@@ -7,6 +7,7 @@ package plugin.v1;
|
||||
|
||||
import "controller/api/resources/storagebuckets/v1/storage_bucket.proto";
|
||||
import "google/protobuf/struct.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
option go_package = "github.com/hashicorp/boundary/sdk/pbs/plugin;plugin";
|
||||
|
||||
@@ -24,6 +25,9 @@ service StoragePluginService {
|
||||
// deleted.
|
||||
rpc OnDeleteStorageBucket(OnDeleteStorageBucketRequest) returns (OnDeleteStorageBucketResponse);
|
||||
|
||||
// HeadObject is a hook that retrieves metadata about an object.
|
||||
rpc HeadObject(HeadObjectRequest) returns (HeadObjectResponse);
|
||||
|
||||
// GetObject is a hook that retrieves objects.
|
||||
rpc GetObject(GetObjectRequest) returns (stream GetObjectResponse);
|
||||
|
||||
@@ -72,6 +76,22 @@ message OnDeleteStorageBucketRequest {
|
||||
|
||||
message OnDeleteStorageBucketResponse {}
|
||||
|
||||
message HeadObjectRequest {
|
||||
// Required. The existing state of the storage bucket.
|
||||
controller.api.resources.storagebuckets.v1.StorageBucket bucket = 10;
|
||||
|
||||
// Required. The path of the object.
|
||||
string key = 20;
|
||||
}
|
||||
|
||||
message HeadObjectResponse {
|
||||
// The size of the object in bytes.
|
||||
int64 content_length = 10;
|
||||
|
||||
// Creation date of the object.
|
||||
google.protobuf.Timestamp last_modified = 20;
|
||||
}
|
||||
|
||||
message GetObjectRequest {
|
||||
// Required. The existing state of the storage bucket.
|
||||
controller.api.resources.storagebuckets.v1.StorageBucket bucket = 10;
|
||||
|
||||
Reference in new issue
Block a user