|
@@ -1,17 +1,12 @@
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
// versions:
|
|
|
-// protoc-gen-go v1.23.0
|
|
|
-// protoc v3.11.4
|
|
|
+// protoc-gen-go v1.28.0
|
|
|
+// protoc v3.15.5
|
|
|
// source: filesystem.proto
|
|
|
|
|
|
package filesystem
|
|
|
|
|
|
import (
|
|
|
- context "context"
|
|
|
- proto "github.com/golang/protobuf/proto"
|
|
|
- grpc "google.golang.org/grpc"
|
|
|
- codes "google.golang.org/grpc/codes"
|
|
|
- status "google.golang.org/grpc/status"
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
reflect "reflect"
|
|
@@ -25,10 +20,6 @@ const (
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
)
|
|
|
|
|
|
-// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
-// of the legacy proto package is being used.
|
|
|
-const _ = proto.ProtoPackageIsVersion4
|
|
|
-
|
|
|
type DomainReq struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
@@ -141,6 +132,7 @@ type SaveFileReq struct {
|
|
|
FileId string `protobuf:"bytes,2,opt,name=fileId,proto3" json:"fileId,omitempty"`
|
|
|
Meta map[string]string `protobuf:"bytes,3,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //元数据
|
|
|
RawFileContent []byte `protobuf:"bytes,4,opt,name=rawFileContent,proto3" json:"rawFileContent,omitempty"` //文件内容
|
|
|
+ Source string `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"` //文件来源
|
|
|
}
|
|
|
|
|
|
func (x *SaveFileReq) Reset() {
|
|
@@ -203,6 +195,13 @@ func (x *SaveFileReq) GetRawFileContent() []byte {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+func (x *SaveFileReq) GetSource() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Source
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
//
|
|
|
type FileOpResp struct {
|
|
|
state protoimpl.MessageState
|
|
@@ -338,7 +337,7 @@ type LoadFileReq struct {
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` //存入哪个buckets
|
|
|
- FileId string `protobuf:"bytes,2,opt,name=fileId,proto3" json:"fileId,omitempty"`
|
|
|
+ FileId string `protobuf:"bytes,2,opt,name=fileId,proto3" json:"fileId,omitempty"` //objectName
|
|
|
}
|
|
|
|
|
|
func (x *LoadFileReq) Reset() {
|
|
@@ -549,7 +548,7 @@ var file_filesystem_proto_rawDesc = []byte{
|
|
|
0x03, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x61, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22,
|
|
|
0x22, 0x0a, 0x0a, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a,
|
|
|
0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74,
|
|
|
- 0x61, 0x74, 0x65, 0x22, 0xd5, 0x01, 0x0a, 0x0b, 0x53, 0x61, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65,
|
|
|
+ 0x61, 0x74, 0x65, 0x22, 0xed, 0x01, 0x0a, 0x0b, 0x53, 0x61, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65,
|
|
|
0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20,
|
|
|
0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66,
|
|
|
0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c,
|
|
@@ -559,91 +558,93 @@ var file_filesystem_proto_rawDesc = []byte{
|
|
|
0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x0e, 0x72, 0x61,
|
|
|
0x77, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01,
|
|
|
0x28, 0x0c, 0x52, 0x0e, 0x72, 0x61, 0x77, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65,
|
|
|
- 0x6e, 0x74, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
|
|
|
- 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
|
|
|
- 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
- 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x52, 0x0a, 0x0a, 0x46,
|
|
|
- 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61,
|
|
|
- 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12,
|
|
|
- 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
- 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49,
|
|
|
- 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22,
|
|
|
- 0xb9, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65,
|
|
|
- 0x74, 0x61, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18,
|
|
|
- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a,
|
|
|
- 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66,
|
|
|
- 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x3b, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20,
|
|
|
- 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
|
|
|
- 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52,
|
|
|
- 0x65, 0x71, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65,
|
|
|
- 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
|
|
|
- 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
|
|
|
- 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
- 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x0b, 0x4c,
|
|
|
- 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f,
|
|
|
- 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61,
|
|
|
- 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
|
|
|
- 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0xa7, 0x01, 0x0a, 0x0c, 0x4c,
|
|
|
- 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x36, 0x0a, 0x04, 0x6d,
|
|
|
- 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x69, 0x6c, 0x65,
|
|
|
- 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52,
|
|
|
- 0x65, 0x73, 0x70, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d,
|
|
|
- 0x65, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x0e, 0x72, 0x61, 0x77, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f,
|
|
|
- 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x72, 0x61, 0x77,
|
|
|
- 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x1a, 0x37, 0x0a, 0x09, 0x4d,
|
|
|
- 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
|
|
|
- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
|
|
|
- 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
|
|
- 0x3a, 0x02, 0x38, 0x01, 0x22, 0x87, 0x01, 0x0a, 0x10, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c,
|
|
|
- 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3a, 0x0a, 0x04, 0x6d, 0x65, 0x74,
|
|
|
- 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79,
|
|
|
- 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74,
|
|
|
- 0x61, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
|
|
|
- 0x04, 0x6d, 0x65, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74,
|
|
|
- 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
- 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
|
|
|
- 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x24,
|
|
|
- 0x0a, 0x0a, 0x4f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06,
|
|
|
- 0x6f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x73,
|
|
|
- 0x73, 0x55, 0x72, 0x6c, 0x32, 0xd5, 0x04, 0x0a, 0x0a, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x79, 0x73,
|
|
|
- 0x74, 0x65, 0x6d, 0x12, 0x3d, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d,
|
|
|
- 0x61, 0x69, 0x6e, 0x12, 0x15, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
|
|
|
- 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c,
|
|
|
- 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65,
|
|
|
- 0x73, 0x70, 0x12, 0x41, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61,
|
|
|
- 0x69, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x15, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73,
|
|
|
- 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e,
|
|
|
- 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69,
|
|
|
- 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3d, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44,
|
|
|
- 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x15, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74,
|
|
|
- 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66,
|
|
|
- 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
|
|
|
- 0x52, 0x65, 0x73, 0x70, 0x12, 0x3b, 0x0a, 0x08, 0x53, 0x61, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65,
|
|
|
- 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x61,
|
|
|
- 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65,
|
|
|
- 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73,
|
|
|
- 0x70, 0x12, 0x47, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4d,
|
|
|
- 0x65, 0x74, 0x61, 0x12, 0x1d, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
|
|
|
- 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52,
|
|
|
+ 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01,
|
|
|
+ 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65,
|
|
|
+ 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
|
|
|
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
|
|
|
+ 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
|
|
|
+ 0x02, 0x38, 0x01, 0x22, 0x52, 0x0a, 0x0a, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73,
|
|
|
+ 0x70, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
|
|
|
+ 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69,
|
|
|
+ 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12,
|
|
|
+ 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
+ 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0xb9, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61,
|
|
|
+ 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a,
|
|
|
+ 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64,
|
|
|
+ 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18,
|
|
|
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x3b, 0x0a,
|
|
|
+ 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x69,
|
|
|
+ 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46,
|
|
|
+ 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x65, 0x71, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45,
|
|
|
+ 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65,
|
|
|
+ 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
|
|
|
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
|
|
|
+ 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
|
|
|
+ 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x0b, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52,
|
|
|
+ 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01,
|
|
|
+ 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69,
|
|
|
+ 0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65,
|
|
|
+ 0x49, 0x64, 0x22, 0xa7, 0x01, 0x0a, 0x0c, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52,
|
|
|
+ 0x65, 0x73, 0x70, 0x12, 0x36, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28,
|
|
|
+ 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c,
|
|
|
+ 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x4d, 0x65, 0x74, 0x61,
|
|
|
+ 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x0e, 0x72,
|
|
|
+ 0x61, 0x77, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20,
|
|
|
+ 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x72, 0x61, 0x77, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74,
|
|
|
+ 0x65, 0x6e, 0x74, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
|
|
+ 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
|
|
|
+ 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
+ 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x87, 0x01, 0x0a,
|
|
|
+ 0x10, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x65, 0x73,
|
|
|
+ 0x70, 0x12, 0x3a, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
|
|
+ 0x26, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61,
|
|
|
+ 0x64, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x4d, 0x65,
|
|
|
+ 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x1a, 0x37, 0x0a,
|
|
|
+ 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
|
|
|
+ 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,
|
|
|
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,
|
|
|
+ 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x24, 0x0a, 0x0a, 0x4f, 0x73, 0x73, 0x55, 0x72, 0x6c,
|
|
|
+ 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x18, 0x01,
|
|
|
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x32, 0xd5, 0x04, 0x0a,
|
|
|
+ 0x0a, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x3d, 0x0a, 0x0c, 0x43,
|
|
|
+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x15, 0x2e, 0x66, 0x69,
|
|
|
+ 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52,
|
|
|
0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e,
|
|
|
- 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3d, 0x0a, 0x0a, 0x44, 0x65,
|
|
|
- 0x6c, 0x65, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73,
|
|
|
- 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65,
|
|
|
+ 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x41, 0x0a, 0x10, 0x55, 0x70,
|
|
|
+ 0x64, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x15,
|
|
|
+ 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61,
|
|
|
+ 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74,
|
|
|
+ 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3d, 0x0a,
|
|
|
+ 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x15, 0x2e,
|
|
|
+ 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69,
|
|
|
+ 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65,
|
|
|
+ 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3b, 0x0a, 0x08,
|
|
|
+ 0x53, 0x61, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73,
|
|
|
+ 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65,
|
|
|
0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x46,
|
|
|
- 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3c, 0x0a, 0x07, 0x47, 0x65, 0x74,
|
|
|
- 0x46, 0x69, 0x6c, 0x65, 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65,
|
|
|
- 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e,
|
|
|
- 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46,
|
|
|
- 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x44, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x46, 0x69,
|
|
|
- 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73,
|
|
|
- 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a,
|
|
|
- 0x1c, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61,
|
|
|
- 0x64, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3d, 0x0a,
|
|
|
- 0x0a, 0x47, 0x65, 0x74, 0x4f, 0x73, 0x73, 0x55, 0x72, 0x69, 0x6c, 0x12, 0x17, 0x2e, 0x66, 0x69,
|
|
|
- 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c,
|
|
|
- 0x65, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65,
|
|
|
- 0x6d, 0x2e, 0x4f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x62, 0x06, 0x70, 0x72,
|
|
|
- 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x47, 0x0a, 0x0e, 0x55, 0x70, 0x64,
|
|
|
+ 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1d, 0x2e, 0x66, 0x69,
|
|
|
+ 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46,
|
|
|
+ 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c,
|
|
|
+ 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65,
|
|
|
+ 0x73, 0x70, 0x12, 0x3d, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65,
|
|
|
+ 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f,
|
|
|
+ 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65,
|
|
|
+ 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73,
|
|
|
+ 0x70, 0x12, 0x3c, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x17, 0x2e, 0x66,
|
|
|
+ 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69,
|
|
|
+ 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74,
|
|
|
+ 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12,
|
|
|
+ 0x44, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x17,
|
|
|
+ 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64,
|
|
|
+ 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79,
|
|
|
+ 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74,
|
|
|
+ 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3d, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4f, 0x73, 0x73, 0x55,
|
|
|
+ 0x72, 0x69, 0x6c, 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
|
|
|
+ 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66,
|
|
|
+ 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4f, 0x73, 0x73, 0x55, 0x72, 0x6c,
|
|
|
+ 0x52, 0x65, 0x73, 0x70, 0x42, 0x0e, 0x5a, 0x0c, 0x2e, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79,
|
|
|
+ 0x73, 0x74, 0x65, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -838,389 +839,3 @@ func file_filesystem_proto_init() {
|
|
|
file_filesystem_proto_goTypes = nil
|
|
|
file_filesystem_proto_depIdxs = nil
|
|
|
}
|
|
|
-
|
|
|
-// Reference imports to suppress errors if they are not otherwise used.
|
|
|
-var _ context.Context
|
|
|
-var _ grpc.ClientConnInterface
|
|
|
-
|
|
|
-// This is a compile-time assertion to ensure that this generated file
|
|
|
-// is compatible with the grpc package it is being compiled against.
|
|
|
-const _ = grpc.SupportPackageIsVersion6
|
|
|
-
|
|
|
-// FileSystemClient is the client API for FileSystem service.
|
|
|
-//
|
|
|
-// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
-type FileSystemClient interface {
|
|
|
- //创建域
|
|
|
- CreateDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error)
|
|
|
- //更新域
|
|
|
- UpdateDomainMeta(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error)
|
|
|
- //删除域
|
|
|
- DeleteDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error)
|
|
|
- //保存文件
|
|
|
- SaveFile(ctx context.Context, in *SaveFileReq, opts ...grpc.CallOption) (*FileOpResp, error)
|
|
|
- //更新文件元数据
|
|
|
- UpdateFileMeta(ctx context.Context, in *UpdateFileMetaReq, opts ...grpc.CallOption) (*FileOpResp, error)
|
|
|
- //删除文件
|
|
|
- DeleteFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*FileOpResp, error)
|
|
|
- //获取文件
|
|
|
- GetFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileResp, error)
|
|
|
- //获取文件元数据
|
|
|
- GetFileMeta(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileMetaResp, error)
|
|
|
- //获取签名OSSURL
|
|
|
- GetOssUril(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*OssUrlResp, error)
|
|
|
-}
|
|
|
-
|
|
|
-type fileSystemClient struct {
|
|
|
- cc grpc.ClientConnInterface
|
|
|
-}
|
|
|
-
|
|
|
-func NewFileSystemClient(cc grpc.ClientConnInterface) FileSystemClient {
|
|
|
- return &fileSystemClient{cc}
|
|
|
-}
|
|
|
-
|
|
|
-func (c *fileSystemClient) CreateDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error) {
|
|
|
- out := new(DomainResp)
|
|
|
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/CreateDomain", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *fileSystemClient) UpdateDomainMeta(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error) {
|
|
|
- out := new(DomainResp)
|
|
|
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/UpdateDomainMeta", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *fileSystemClient) DeleteDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error) {
|
|
|
- out := new(DomainResp)
|
|
|
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/DeleteDomain", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *fileSystemClient) SaveFile(ctx context.Context, in *SaveFileReq, opts ...grpc.CallOption) (*FileOpResp, error) {
|
|
|
- out := new(FileOpResp)
|
|
|
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/SaveFile", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *fileSystemClient) UpdateFileMeta(ctx context.Context, in *UpdateFileMetaReq, opts ...grpc.CallOption) (*FileOpResp, error) {
|
|
|
- out := new(FileOpResp)
|
|
|
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/UpdateFileMeta", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *fileSystemClient) DeleteFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*FileOpResp, error) {
|
|
|
- out := new(FileOpResp)
|
|
|
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/DeleteFile", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *fileSystemClient) GetFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileResp, error) {
|
|
|
- out := new(LoadFileResp)
|
|
|
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/GetFile", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *fileSystemClient) GetFileMeta(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileMetaResp, error) {
|
|
|
- out := new(LoadFileMetaResp)
|
|
|
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/GetFileMeta", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *fileSystemClient) GetOssUril(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*OssUrlResp, error) {
|
|
|
- out := new(OssUrlResp)
|
|
|
- err := c.cc.Invoke(ctx, "/filesystem.FileSystem/GetOssUril", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-// FileSystemServer is the server API for FileSystem service.
|
|
|
-type FileSystemServer interface {
|
|
|
- //创建域
|
|
|
- CreateDomain(context.Context, *DomainReq) (*DomainResp, error)
|
|
|
- //更新域
|
|
|
- UpdateDomainMeta(context.Context, *DomainReq) (*DomainResp, error)
|
|
|
- //删除域
|
|
|
- DeleteDomain(context.Context, *DomainReq) (*DomainResp, error)
|
|
|
- //保存文件
|
|
|
- SaveFile(context.Context, *SaveFileReq) (*FileOpResp, error)
|
|
|
- //更新文件元数据
|
|
|
- UpdateFileMeta(context.Context, *UpdateFileMetaReq) (*FileOpResp, error)
|
|
|
- //删除文件
|
|
|
- DeleteFile(context.Context, *LoadFileReq) (*FileOpResp, error)
|
|
|
- //获取文件
|
|
|
- GetFile(context.Context, *LoadFileReq) (*LoadFileResp, error)
|
|
|
- //获取文件元数据
|
|
|
- GetFileMeta(context.Context, *LoadFileReq) (*LoadFileMetaResp, error)
|
|
|
- //获取签名OSSURL
|
|
|
- GetOssUril(context.Context, *LoadFileReq) (*OssUrlResp, error)
|
|
|
-}
|
|
|
-
|
|
|
-// UnimplementedFileSystemServer can be embedded to have forward compatible implementations.
|
|
|
-type UnimplementedFileSystemServer struct {
|
|
|
-}
|
|
|
-
|
|
|
-func (*UnimplementedFileSystemServer) CreateDomain(context.Context, *DomainReq) (*DomainResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method CreateDomain not implemented")
|
|
|
-}
|
|
|
-func (*UnimplementedFileSystemServer) UpdateDomainMeta(context.Context, *DomainReq) (*DomainResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method UpdateDomainMeta not implemented")
|
|
|
-}
|
|
|
-func (*UnimplementedFileSystemServer) DeleteDomain(context.Context, *DomainReq) (*DomainResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method DeleteDomain not implemented")
|
|
|
-}
|
|
|
-func (*UnimplementedFileSystemServer) SaveFile(context.Context, *SaveFileReq) (*FileOpResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method SaveFile not implemented")
|
|
|
-}
|
|
|
-func (*UnimplementedFileSystemServer) UpdateFileMeta(context.Context, *UpdateFileMetaReq) (*FileOpResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method UpdateFileMeta not implemented")
|
|
|
-}
|
|
|
-func (*UnimplementedFileSystemServer) DeleteFile(context.Context, *LoadFileReq) (*FileOpResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method DeleteFile not implemented")
|
|
|
-}
|
|
|
-func (*UnimplementedFileSystemServer) GetFile(context.Context, *LoadFileReq) (*LoadFileResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method GetFile not implemented")
|
|
|
-}
|
|
|
-func (*UnimplementedFileSystemServer) GetFileMeta(context.Context, *LoadFileReq) (*LoadFileMetaResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method GetFileMeta not implemented")
|
|
|
-}
|
|
|
-func (*UnimplementedFileSystemServer) GetOssUril(context.Context, *LoadFileReq) (*OssUrlResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method GetOssUril not implemented")
|
|
|
-}
|
|
|
-
|
|
|
-func RegisterFileSystemServer(s *grpc.Server, srv FileSystemServer) {
|
|
|
- s.RegisterService(&_FileSystem_serviceDesc, srv)
|
|
|
-}
|
|
|
-
|
|
|
-func _FileSystem_CreateDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(DomainReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(FileSystemServer).CreateDomain(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/filesystem.FileSystem/CreateDomain",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(FileSystemServer).CreateDomain(ctx, req.(*DomainReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _FileSystem_UpdateDomainMeta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(DomainReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(FileSystemServer).UpdateDomainMeta(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/filesystem.FileSystem/UpdateDomainMeta",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(FileSystemServer).UpdateDomainMeta(ctx, req.(*DomainReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _FileSystem_DeleteDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(DomainReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(FileSystemServer).DeleteDomain(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/filesystem.FileSystem/DeleteDomain",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(FileSystemServer).DeleteDomain(ctx, req.(*DomainReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _FileSystem_SaveFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(SaveFileReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(FileSystemServer).SaveFile(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/filesystem.FileSystem/SaveFile",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(FileSystemServer).SaveFile(ctx, req.(*SaveFileReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _FileSystem_UpdateFileMeta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(UpdateFileMetaReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(FileSystemServer).UpdateFileMeta(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/filesystem.FileSystem/UpdateFileMeta",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(FileSystemServer).UpdateFileMeta(ctx, req.(*UpdateFileMetaReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _FileSystem_DeleteFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(LoadFileReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(FileSystemServer).DeleteFile(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/filesystem.FileSystem/DeleteFile",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(FileSystemServer).DeleteFile(ctx, req.(*LoadFileReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _FileSystem_GetFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(LoadFileReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(FileSystemServer).GetFile(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/filesystem.FileSystem/GetFile",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(FileSystemServer).GetFile(ctx, req.(*LoadFileReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _FileSystem_GetFileMeta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(LoadFileReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(FileSystemServer).GetFileMeta(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/filesystem.FileSystem/GetFileMeta",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(FileSystemServer).GetFileMeta(ctx, req.(*LoadFileReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _FileSystem_GetOssUril_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(LoadFileReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(FileSystemServer).GetOssUril(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/filesystem.FileSystem/GetOssUril",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(FileSystemServer).GetOssUril(ctx, req.(*LoadFileReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-var _FileSystem_serviceDesc = grpc.ServiceDesc{
|
|
|
- ServiceName: "filesystem.FileSystem",
|
|
|
- HandlerType: (*FileSystemServer)(nil),
|
|
|
- Methods: []grpc.MethodDesc{
|
|
|
- {
|
|
|
- MethodName: "CreateDomain",
|
|
|
- Handler: _FileSystem_CreateDomain_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "UpdateDomainMeta",
|
|
|
- Handler: _FileSystem_UpdateDomainMeta_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "DeleteDomain",
|
|
|
- Handler: _FileSystem_DeleteDomain_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "SaveFile",
|
|
|
- Handler: _FileSystem_SaveFile_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "UpdateFileMeta",
|
|
|
- Handler: _FileSystem_UpdateFileMeta_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "DeleteFile",
|
|
|
- Handler: _FileSystem_DeleteFile_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "GetFile",
|
|
|
- Handler: _FileSystem_GetFile_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "GetFileMeta",
|
|
|
- Handler: _FileSystem_GetFileMeta_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "GetOssUril",
|
|
|
- Handler: _FileSystem_GetOssUril_Handler,
|
|
|
- },
|
|
|
- },
|
|
|
- Streams: []grpc.StreamDesc{},
|
|
|
- Metadata: "filesystem.proto",
|
|
|
-}
|