Documentation ¶
Index ¶
- Variables
- func RegisterVolumeServiceHTTPServer(s *http.Server, srv VolumeServiceHTTPServer)
- func RegisterVolumeServiceServer(s grpc.ServiceRegistrar, srv VolumeServiceServer)
- type CreateFileReq
- func (*CreateFileReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFileReq) GetId() string
- func (x *CreateFileReq) GetIsDir() bool
- func (x *CreateFileReq) GetPath() string
- func (*CreateFileReq) ProtoMessage()
- func (x *CreateFileReq) ProtoReflect() protoreflect.Message
- func (x *CreateFileReq) Reset()
- func (x *CreateFileReq) String() string
- func (m *CreateFileReq) Validate() error
- type CreateFileReqValidationError
- func (e CreateFileReqValidationError) Cause() error
- func (e CreateFileReqValidationError) Error() string
- func (e CreateFileReqValidationError) ErrorName() string
- func (e CreateFileReqValidationError) Field() string
- func (e CreateFileReqValidationError) Key() bool
- func (e CreateFileReqValidationError) Reason() string
- type CreateVolumeReq
- func (*CreateVolumeReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVolumeReq) GetName() string
- func (x *CreateVolumeReq) GetProvider() string
- func (x *CreateVolumeReq) GetProviderConfig() string
- func (*CreateVolumeReq) ProtoMessage()
- func (x *CreateVolumeReq) ProtoReflect() protoreflect.Message
- func (x *CreateVolumeReq) Reset()
- func (x *CreateVolumeReq) String() string
- func (m *CreateVolumeReq) Validate() error
- type CreateVolumeReqValidationError
- func (e CreateVolumeReqValidationError) Cause() error
- func (e CreateVolumeReqValidationError) Error() string
- func (e CreateVolumeReqValidationError) ErrorName() string
- func (e CreateVolumeReqValidationError) Field() string
- func (e CreateVolumeReqValidationError) Key() bool
- func (e CreateVolumeReqValidationError) Reason() string
- type DelFileReq
- type DelFileReqValidationError
- type DeleteVolumeReq
- func (*DeleteVolumeReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteVolumeReq) GetId() string
- func (*DeleteVolumeReq) ProtoMessage()
- func (x *DeleteVolumeReq) ProtoReflect() protoreflect.Message
- func (x *DeleteVolumeReq) Reset()
- func (x *DeleteVolumeReq) String() string
- func (m *DeleteVolumeReq) Validate() error
- type DeleteVolumeReqValidationError
- func (e DeleteVolumeReqValidationError) Cause() error
- func (e DeleteVolumeReqValidationError) Error() string
- func (e DeleteVolumeReqValidationError) ErrorName() string
- func (e DeleteVolumeReqValidationError) Field() string
- func (e DeleteVolumeReqValidationError) Key() bool
- func (e DeleteVolumeReqValidationError) Reason() string
- type File
- func (*File) Descriptor() ([]byte, []int)deprecated
- func (x *File) GetExt() string
- func (x *File) GetIsDir() bool
- func (x *File) GetName() string
- func (x *File) GetPath() string
- func (x *File) GetSize() int64
- func (x *File) GetUpdatedAt() int64
- func (x *File) GetVolumeId() string
- func (*File) ProtoMessage()
- func (x *File) ProtoReflect() protoreflect.Message
- func (x *File) Reset()
- func (x *File) String() string
- func (m *File) Validate() error
- type FileDataRes
- func (*FileDataRes) Descriptor() ([]byte, []int)deprecated
- func (x *FileDataRes) GetData() string
- func (x *FileDataRes) GetName() string
- func (*FileDataRes) ProtoMessage()
- func (x *FileDataRes) ProtoReflect() protoreflect.Message
- func (x *FileDataRes) Reset()
- func (x *FileDataRes) String() string
- func (m *FileDataRes) Validate() error
- type FileDataResValidationError
- func (e FileDataResValidationError) Cause() error
- func (e FileDataResValidationError) Error() string
- func (e FileDataResValidationError) ErrorName() string
- func (e FileDataResValidationError) Field() string
- func (e FileDataResValidationError) Key() bool
- func (e FileDataResValidationError) Reason() string
- type FileDownRes
- type FileDownResValidationError
- func (e FileDownResValidationError) Cause() error
- func (e FileDownResValidationError) Error() string
- func (e FileDownResValidationError) ErrorName() string
- func (e FileDownResValidationError) Field() string
- func (e FileDownResValidationError) Key() bool
- func (e FileDownResValidationError) Reason() string
- type FileReq
- func (*FileReq) Descriptor() ([]byte, []int)deprecated
- func (x *FileReq) GetId() string
- func (x *FileReq) GetPath() string
- func (*FileReq) ProtoMessage()
- func (x *FileReq) ProtoReflect() protoreflect.Message
- func (x *FileReq) Reset()
- func (x *FileReq) String() string
- func (m *FileReq) Validate() error
- type FileReqValidationError
- type FileValidationError
- type ListFileReply
- func (*ListFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileReply) GetList() []*File
- func (x *ListFileReply) GetTotal() int64
- func (*ListFileReply) ProtoMessage()
- func (x *ListFileReply) ProtoReflect() protoreflect.Message
- func (x *ListFileReply) Reset()
- func (x *ListFileReply) String() string
- func (m *ListFileReply) Validate() error
- type ListFileReplyValidationError
- func (e ListFileReplyValidationError) Cause() error
- func (e ListFileReplyValidationError) Error() string
- func (e ListFileReplyValidationError) ErrorName() string
- func (e ListFileReplyValidationError) Field() string
- func (e ListFileReplyValidationError) Key() bool
- func (e ListFileReplyValidationError) Reason() string
- type ListFileReq
- func (*ListFileReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileReq) GetId() string
- func (x *ListFileReq) GetOption() *v1.ListOption
- func (x *ListFileReq) GetPath() string
- func (x *ListFileReq) GetType() uint32
- func (*ListFileReq) ProtoMessage()
- func (x *ListFileReq) ProtoReflect() protoreflect.Message
- func (x *ListFileReq) Reset()
- func (x *ListFileReq) String() string
- func (m *ListFileReq) Validate() error
- type ListFileReqValidationError
- func (e ListFileReqValidationError) Cause() error
- func (e ListFileReqValidationError) Error() string
- func (e ListFileReqValidationError) ErrorName() string
- func (e ListFileReqValidationError) Field() string
- func (e ListFileReqValidationError) Key() bool
- func (e ListFileReqValidationError) Reason() string
- type ListVolumeReply
- func (*ListVolumeReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListVolumeReply) GetList() []*Volume
- func (x *ListVolumeReply) GetTotal() int64
- func (*ListVolumeReply) ProtoMessage()
- func (x *ListVolumeReply) ProtoReflect() protoreflect.Message
- func (x *ListVolumeReply) Reset()
- func (x *ListVolumeReply) String() string
- func (m *ListVolumeReply) Validate() error
- type ListVolumeReplyValidationError
- func (e ListVolumeReplyValidationError) Cause() error
- func (e ListVolumeReplyValidationError) Error() string
- func (e ListVolumeReplyValidationError) ErrorName() string
- func (e ListVolumeReplyValidationError) Field() string
- func (e ListVolumeReplyValidationError) Key() bool
- func (e ListVolumeReplyValidationError) Reason() string
- type ListVolumeReq
- type ListVolumeReqValidationError
- func (e ListVolumeReqValidationError) Cause() error
- func (e ListVolumeReqValidationError) Error() string
- func (e ListVolumeReqValidationError) ErrorName() string
- func (e ListVolumeReqValidationError) Field() string
- func (e ListVolumeReqValidationError) Key() bool
- func (e ListVolumeReqValidationError) Reason() string
- type MoveCopyFileReq
- func (*MoveCopyFileReq) Descriptor() ([]byte, []int)deprecated
- func (x *MoveCopyFileReq) GetFiles() []*FileReq
- func (x *MoveCopyFileReq) GetIsDelete() bool
- func (x *MoveCopyFileReq) GetToPath() string
- func (x *MoveCopyFileReq) GetToVolumeId() string
- func (x *MoveCopyFileReq) GetWireType() uint32
- func (*MoveCopyFileReq) ProtoMessage()
- func (x *MoveCopyFileReq) ProtoReflect() protoreflect.Message
- func (x *MoveCopyFileReq) Reset()
- func (x *MoveCopyFileReq) String() string
- func (m *MoveCopyFileReq) Validate() error
- type MoveCopyFileReqValidationError
- func (e MoveCopyFileReqValidationError) Cause() error
- func (e MoveCopyFileReqValidationError) Error() string
- func (e MoveCopyFileReqValidationError) ErrorName() string
- func (e MoveCopyFileReqValidationError) Field() string
- func (e MoveCopyFileReqValidationError) Key() bool
- func (e MoveCopyFileReqValidationError) Reason() string
- type RenameFileReq
- func (*RenameFileReq) Descriptor() ([]byte, []int)deprecated
- func (x *RenameFileReq) GetId() string
- func (x *RenameFileReq) GetIsCover() bool
- func (x *RenameFileReq) GetNewPath() string
- func (x *RenameFileReq) GetPath() string
- func (*RenameFileReq) ProtoMessage()
- func (x *RenameFileReq) ProtoReflect() protoreflect.Message
- func (x *RenameFileReq) Reset()
- func (x *RenameFileReq) String() string
- func (m *RenameFileReq) Validate() error
- type RenameFileReqValidationError
- func (e RenameFileReqValidationError) Cause() error
- func (e RenameFileReqValidationError) Error() string
- func (e RenameFileReqValidationError) ErrorName() string
- func (e RenameFileReqValidationError) Field() string
- func (e RenameFileReqValidationError) Key() bool
- func (e RenameFileReqValidationError) Reason() string
- type SaveFileReq
- func (*SaveFileReq) Descriptor() ([]byte, []int)deprecated
- func (x *SaveFileReq) GetData() string
- func (x *SaveFileReq) GetId() string
- func (x *SaveFileReq) GetPath() string
- func (*SaveFileReq) ProtoMessage()
- func (x *SaveFileReq) ProtoReflect() protoreflect.Message
- func (x *SaveFileReq) Reset()
- func (x *SaveFileReq) String() string
- type UnimplementedVolumeServiceServer
- func (UnimplementedVolumeServiceServer) CreateFile(context.Context, *CreateFileReq) (*v1.Empty, error)
- func (UnimplementedVolumeServiceServer) CreateVolume(context.Context, *CreateVolumeReq) (*Volume, error)
- func (UnimplementedVolumeServiceServer) DelFile(context.Context, *DelFileReq) (*v1.Empty, error)
- func (UnimplementedVolumeServiceServer) DeleteVolume(context.Context, *DeleteVolumeReq) (*v1.Empty, error)
- func (UnimplementedVolumeServiceServer) FileData(context.Context, *FileReq) (*FileDataRes, error)
- func (UnimplementedVolumeServiceServer) FileDown(context.Context, *FileReq) (*FileDownRes, error)
- func (UnimplementedVolumeServiceServer) ListFile(context.Context, *ListFileReq) (*ListFileReply, error)
- func (UnimplementedVolumeServiceServer) ListVolume(context.Context, *ListVolumeReq) (*ListVolumeReply, error)
- func (UnimplementedVolumeServiceServer) MoveAndCopyFile(context.Context, *MoveCopyFileReq) (*v1.Empty, error)
- func (UnimplementedVolumeServiceServer) RenameFile(context.Context, *RenameFileReq) (*v1.Empty, error)
- func (UnimplementedVolumeServiceServer) SaveFile(context.Context, *SaveFileReq) (*v1.Empty, error)
- type UnsafeVolumeServiceServer
- type Volume
- func (*Volume) Descriptor() ([]byte, []int)deprecated
- func (x *Volume) GetCreatedAt() *timestamppb.Timestamp
- func (x *Volume) GetId() string
- func (x *Volume) GetName() string
- func (x *Volume) GetProvider() string
- func (x *Volume) GetProviderConfig() string
- func (x *Volume) GetUpdatedAt() *timestamppb.Timestamp
- func (*Volume) ProtoMessage()
- func (x *Volume) ProtoReflect() protoreflect.Message
- func (x *Volume) Reset()
- func (x *Volume) String() string
- func (m *Volume) Validate() error
- type VolumeServiceClient
- type VolumeServiceHTTPClient
- type VolumeServiceHTTPClientImpl
- func (c *VolumeServiceHTTPClientImpl) CreateFile(ctx context.Context, in *CreateFileReq, opts ...http.CallOption) (*v1.Empty, error)
- func (c *VolumeServiceHTTPClientImpl) CreateVolume(ctx context.Context, in *CreateVolumeReq, opts ...http.CallOption) (*Volume, error)
- func (c *VolumeServiceHTTPClientImpl) DelFile(ctx context.Context, in *DelFileReq, opts ...http.CallOption) (*v1.Empty, error)
- func (c *VolumeServiceHTTPClientImpl) DeleteVolume(ctx context.Context, in *DeleteVolumeReq, opts ...http.CallOption) (*v1.Empty, error)
- func (c *VolumeServiceHTTPClientImpl) FileData(ctx context.Context, in *FileReq, opts ...http.CallOption) (*FileDataRes, error)
- func (c *VolumeServiceHTTPClientImpl) FileDown(ctx context.Context, in *FileReq, opts ...http.CallOption) (*FileDownRes, error)
- func (c *VolumeServiceHTTPClientImpl) ListFile(ctx context.Context, in *ListFileReq, opts ...http.CallOption) (*ListFileReply, error)
- func (c *VolumeServiceHTTPClientImpl) ListVolume(ctx context.Context, in *ListVolumeReq, opts ...http.CallOption) (*ListVolumeReply, error)
- func (c *VolumeServiceHTTPClientImpl) MoveAndCopyFile(ctx context.Context, in *MoveCopyFileReq, opts ...http.CallOption) (*v1.Empty, error)
- func (c *VolumeServiceHTTPClientImpl) RenameFile(ctx context.Context, in *RenameFileReq, opts ...http.CallOption) (*v1.Empty, error)
- func (c *VolumeServiceHTTPClientImpl) SaveFile(ctx context.Context, in *SaveFileReq, opts ...http.CallOption) (*v1.Empty, error)
- type VolumeServiceHTTPServer
- type VolumeServiceServer
- type VolumeValidationError
Constants ¶
This section is empty.
Variables ¶
var File_api_storage_v1_volume_proto protoreflect.FileDescriptor
var VolumeService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.service.storage.v1.volume.VolumeService", HandlerType: (*VolumeServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateVolume", Handler: _VolumeService_CreateVolume_Handler, }, { MethodName: "DeleteVolume", Handler: _VolumeService_DeleteVolume_Handler, }, { MethodName: "ListVolume", Handler: _VolumeService_ListVolume_Handler, }, { MethodName: "ListFile", Handler: _VolumeService_ListFile_Handler, }, { MethodName: "CreateFile", Handler: _VolumeService_CreateFile_Handler, }, { MethodName: "SaveFile", Handler: _VolumeService_SaveFile_Handler, }, { MethodName: "DelFile", Handler: _VolumeService_DelFile_Handler, }, { MethodName: "MoveAndCopyFile", Handler: _VolumeService_MoveAndCopyFile_Handler, }, { MethodName: "RenameFile", Handler: _VolumeService_RenameFile_Handler, }, { MethodName: "FileDown", Handler: _VolumeService_FileDown_Handler, }, { MethodName: "FileData", Handler: _VolumeService_FileData_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/storage/v1/volume.proto", }
VolumeService_ServiceDesc is the grpc.ServiceDesc for VolumeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVolumeServiceHTTPServer ¶
func RegisterVolumeServiceHTTPServer(s *http.Server, srv VolumeServiceHTTPServer)
func RegisterVolumeServiceServer ¶
func RegisterVolumeServiceServer(s grpc.ServiceRegistrar, srv VolumeServiceServer)
Types ¶
type CreateFileReq ¶
type CreateFileReq struct { // 存储卷id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 文件/目录路径 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // 是否目录 IsDir bool `protobuf:"varint,3,opt,name=is_dir,json=isDir,proto3" json:"is_dir,omitempty"` // contains filtered or unexported fields }
func (*CreateFileReq) Descriptor
deprecated
func (*CreateFileReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateFileReq.ProtoReflect.Descriptor instead.
func (*CreateFileReq) GetId ¶
func (x *CreateFileReq) GetId() string
func (*CreateFileReq) GetIsDir ¶
func (x *CreateFileReq) GetIsDir() bool
func (*CreateFileReq) GetPath ¶
func (x *CreateFileReq) GetPath() string
func (*CreateFileReq) ProtoMessage ¶
func (*CreateFileReq) ProtoMessage()
func (*CreateFileReq) ProtoReflect ¶
func (x *CreateFileReq) ProtoReflect() protoreflect.Message
func (*CreateFileReq) Reset ¶
func (x *CreateFileReq) Reset()
func (*CreateFileReq) String ¶
func (x *CreateFileReq) String() string
func (*CreateFileReq) Validate ¶
func (m *CreateFileReq) Validate() error
Validate checks the field values on CreateFileReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateFileReqValidationError ¶
type CreateFileReqValidationError struct {
// contains filtered or unexported fields
}
CreateFileReqValidationError is the validation error returned by CreateFileReq.Validate if the designated constraints aren't met.
func (CreateFileReqValidationError) Cause ¶
func (e CreateFileReqValidationError) Cause() error
Cause function returns cause value.
func (CreateFileReqValidationError) Error ¶
func (e CreateFileReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateFileReqValidationError) ErrorName ¶
func (e CreateFileReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateFileReqValidationError) Field ¶
func (e CreateFileReqValidationError) Field() string
Field function returns field value.
func (CreateFileReqValidationError) Key ¶
func (e CreateFileReqValidationError) Key() bool
Key function returns key value.
func (CreateFileReqValidationError) Reason ¶
func (e CreateFileReqValidationError) Reason() string
Reason function returns reason value.
type CreateVolumeReq ¶
type CreateVolumeReq struct { // 卷名 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 供应类型 local 本地 s3 oss cos nfs Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` // 配置 json string ProviderConfig string `protobuf:"bytes,3,opt,name=provider_config,json=providerConfig,proto3" json:"provider_config,omitempty"` // contains filtered or unexported fields }
func (*CreateVolumeReq) Descriptor
deprecated
func (*CreateVolumeReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateVolumeReq.ProtoReflect.Descriptor instead.
func (*CreateVolumeReq) GetName ¶
func (x *CreateVolumeReq) GetName() string
func (*CreateVolumeReq) GetProvider ¶
func (x *CreateVolumeReq) GetProvider() string
func (*CreateVolumeReq) GetProviderConfig ¶
func (x *CreateVolumeReq) GetProviderConfig() string
func (*CreateVolumeReq) ProtoMessage ¶
func (*CreateVolumeReq) ProtoMessage()
func (*CreateVolumeReq) ProtoReflect ¶
func (x *CreateVolumeReq) ProtoReflect() protoreflect.Message
func (*CreateVolumeReq) Reset ¶
func (x *CreateVolumeReq) Reset()
func (*CreateVolumeReq) String ¶
func (x *CreateVolumeReq) String() string
func (*CreateVolumeReq) Validate ¶
func (m *CreateVolumeReq) Validate() error
Validate checks the field values on CreateVolumeReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateVolumeReqValidationError ¶
type CreateVolumeReqValidationError struct {
// contains filtered or unexported fields
}
CreateVolumeReqValidationError is the validation error returned by CreateVolumeReq.Validate if the designated constraints aren't met.
func (CreateVolumeReqValidationError) Cause ¶
func (e CreateVolumeReqValidationError) Cause() error
Cause function returns cause value.
func (CreateVolumeReqValidationError) Error ¶
func (e CreateVolumeReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateVolumeReqValidationError) ErrorName ¶
func (e CreateVolumeReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateVolumeReqValidationError) Field ¶
func (e CreateVolumeReqValidationError) Field() string
Field function returns field value.
func (CreateVolumeReqValidationError) Key ¶
func (e CreateVolumeReqValidationError) Key() bool
Key function returns key value.
func (CreateVolumeReqValidationError) Reason ¶
func (e CreateVolumeReqValidationError) Reason() string
Reason function returns reason value.
type DelFileReq ¶
type DelFileReq struct { // 文件列表 Files []*FileReq `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
func (*DelFileReq) Descriptor
deprecated
func (*DelFileReq) Descriptor() ([]byte, []int)
Deprecated: Use DelFileReq.ProtoReflect.Descriptor instead.
func (*DelFileReq) GetFiles ¶
func (x *DelFileReq) GetFiles() []*FileReq
func (*DelFileReq) ProtoMessage ¶
func (*DelFileReq) ProtoMessage()
func (*DelFileReq) ProtoReflect ¶
func (x *DelFileReq) ProtoReflect() protoreflect.Message
func (*DelFileReq) Reset ¶
func (x *DelFileReq) Reset()
func (*DelFileReq) String ¶
func (x *DelFileReq) String() string
func (*DelFileReq) Validate ¶
func (m *DelFileReq) Validate() error
Validate checks the field values on DelFileReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DelFileReqValidationError ¶
type DelFileReqValidationError struct {
// contains filtered or unexported fields
}
DelFileReqValidationError is the validation error returned by DelFileReq.Validate if the designated constraints aren't met.
func (DelFileReqValidationError) Cause ¶
func (e DelFileReqValidationError) Cause() error
Cause function returns cause value.
func (DelFileReqValidationError) Error ¶
func (e DelFileReqValidationError) Error() string
Error satisfies the builtin error interface
func (DelFileReqValidationError) ErrorName ¶
func (e DelFileReqValidationError) ErrorName() string
ErrorName returns error name.
func (DelFileReqValidationError) Field ¶
func (e DelFileReqValidationError) Field() string
Field function returns field value.
func (DelFileReqValidationError) Key ¶
func (e DelFileReqValidationError) Key() bool
Key function returns key value.
func (DelFileReqValidationError) Reason ¶
func (e DelFileReqValidationError) Reason() string
Reason function returns reason value.
type DeleteVolumeReq ¶
type DeleteVolumeReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteVolumeReq) Descriptor
deprecated
func (*DeleteVolumeReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteVolumeReq.ProtoReflect.Descriptor instead.
func (*DeleteVolumeReq) GetId ¶
func (x *DeleteVolumeReq) GetId() string
func (*DeleteVolumeReq) ProtoMessage ¶
func (*DeleteVolumeReq) ProtoMessage()
func (*DeleteVolumeReq) ProtoReflect ¶
func (x *DeleteVolumeReq) ProtoReflect() protoreflect.Message
func (*DeleteVolumeReq) Reset ¶
func (x *DeleteVolumeReq) Reset()
func (*DeleteVolumeReq) String ¶
func (x *DeleteVolumeReq) String() string
func (*DeleteVolumeReq) Validate ¶
func (m *DeleteVolumeReq) Validate() error
Validate checks the field values on DeleteVolumeReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteVolumeReqValidationError ¶
type DeleteVolumeReqValidationError struct {
// contains filtered or unexported fields
}
DeleteVolumeReqValidationError is the validation error returned by DeleteVolumeReq.Validate if the designated constraints aren't met.
func (DeleteVolumeReqValidationError) Cause ¶
func (e DeleteVolumeReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteVolumeReqValidationError) Error ¶
func (e DeleteVolumeReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteVolumeReqValidationError) ErrorName ¶
func (e DeleteVolumeReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteVolumeReqValidationError) Field ¶
func (e DeleteVolumeReqValidationError) Field() string
Field function returns field value.
func (DeleteVolumeReqValidationError) Key ¶
func (e DeleteVolumeReqValidationError) Key() bool
Key function returns key value.
func (DeleteVolumeReqValidationError) Reason ¶
func (e DeleteVolumeReqValidationError) Reason() string
Reason function returns reason value.
type File ¶
type File struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` Ext string `protobuf:"bytes,4,opt,name=ext,proto3" json:"ext,omitempty"` IsDir bool `protobuf:"varint,5,opt,name=is_dir,json=isDir,proto3" json:"is_dir,omitempty"` UpdatedAt int64 `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` VolumeId string `protobuf:"bytes,7,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` // contains filtered or unexported fields }
func (*File) Descriptor
deprecated
func (*File) GetUpdatedAt ¶
func (*File) GetVolumeId ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type FileDataRes ¶
type FileDataRes struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*FileDataRes) Descriptor
deprecated
func (*FileDataRes) Descriptor() ([]byte, []int)
Deprecated: Use FileDataRes.ProtoReflect.Descriptor instead.
func (*FileDataRes) GetData ¶
func (x *FileDataRes) GetData() string
func (*FileDataRes) GetName ¶
func (x *FileDataRes) GetName() string
func (*FileDataRes) ProtoMessage ¶
func (*FileDataRes) ProtoMessage()
func (*FileDataRes) ProtoReflect ¶
func (x *FileDataRes) ProtoReflect() protoreflect.Message
func (*FileDataRes) Reset ¶
func (x *FileDataRes) Reset()
func (*FileDataRes) String ¶
func (x *FileDataRes) String() string
func (*FileDataRes) Validate ¶
func (m *FileDataRes) Validate() error
Validate checks the field values on FileDataRes with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FileDataResValidationError ¶
type FileDataResValidationError struct {
// contains filtered or unexported fields
}
FileDataResValidationError is the validation error returned by FileDataRes.Validate if the designated constraints aren't met.
func (FileDataResValidationError) Cause ¶
func (e FileDataResValidationError) Cause() error
Cause function returns cause value.
func (FileDataResValidationError) Error ¶
func (e FileDataResValidationError) Error() string
Error satisfies the builtin error interface
func (FileDataResValidationError) ErrorName ¶
func (e FileDataResValidationError) ErrorName() string
ErrorName returns error name.
func (FileDataResValidationError) Field ¶
func (e FileDataResValidationError) Field() string
Field function returns field value.
func (FileDataResValidationError) Key ¶
func (e FileDataResValidationError) Key() bool
Key function returns key value.
func (FileDataResValidationError) Reason ¶
func (e FileDataResValidationError) Reason() string
Reason function returns reason value.
type FileDownRes ¶
type FileDownRes struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*FileDownRes) Descriptor
deprecated
func (*FileDownRes) Descriptor() ([]byte, []int)
Deprecated: Use FileDownRes.ProtoReflect.Descriptor instead.
func (*FileDownRes) GetUrl ¶
func (x *FileDownRes) GetUrl() string
func (*FileDownRes) ProtoMessage ¶
func (*FileDownRes) ProtoMessage()
func (*FileDownRes) ProtoReflect ¶
func (x *FileDownRes) ProtoReflect() protoreflect.Message
func (*FileDownRes) Reset ¶
func (x *FileDownRes) Reset()
func (*FileDownRes) String ¶
func (x *FileDownRes) String() string
func (*FileDownRes) Validate ¶
func (m *FileDownRes) Validate() error
Validate checks the field values on FileDownRes with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FileDownResValidationError ¶
type FileDownResValidationError struct {
// contains filtered or unexported fields
}
FileDownResValidationError is the validation error returned by FileDownRes.Validate if the designated constraints aren't met.
func (FileDownResValidationError) Cause ¶
func (e FileDownResValidationError) Cause() error
Cause function returns cause value.
func (FileDownResValidationError) Error ¶
func (e FileDownResValidationError) Error() string
Error satisfies the builtin error interface
func (FileDownResValidationError) ErrorName ¶
func (e FileDownResValidationError) ErrorName() string
ErrorName returns error name.
func (FileDownResValidationError) Field ¶
func (e FileDownResValidationError) Field() string
Field function returns field value.
func (FileDownResValidationError) Key ¶
func (e FileDownResValidationError) Key() bool
Key function returns key value.
func (FileDownResValidationError) Reason ¶
func (e FileDownResValidationError) Reason() string
Reason function returns reason value.
type FileReq ¶
type FileReq struct { // 存储卷id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 文件/目录路径 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*FileReq) Descriptor
deprecated
func (*FileReq) ProtoMessage ¶
func (*FileReq) ProtoMessage()
func (*FileReq) ProtoReflect ¶
func (x *FileReq) ProtoReflect() protoreflect.Message
type FileReqValidationError ¶
type FileReqValidationError struct {
// contains filtered or unexported fields
}
FileReqValidationError is the validation error returned by FileReq.Validate if the designated constraints aren't met.
func (FileReqValidationError) Cause ¶
func (e FileReqValidationError) Cause() error
Cause function returns cause value.
func (FileReqValidationError) Error ¶
func (e FileReqValidationError) Error() string
Error satisfies the builtin error interface
func (FileReqValidationError) ErrorName ¶
func (e FileReqValidationError) ErrorName() string
ErrorName returns error name.
func (FileReqValidationError) Field ¶
func (e FileReqValidationError) Field() string
Field function returns field value.
func (FileReqValidationError) Key ¶
func (e FileReqValidationError) Key() bool
Key function returns key value.
func (FileReqValidationError) Reason ¶
func (e FileReqValidationError) Reason() string
Reason function returns reason value.
type FileValidationError ¶
type FileValidationError struct {
// contains filtered or unexported fields
}
FileValidationError is the validation error returned by File.Validate if the designated constraints aren't met.
func (FileValidationError) Cause ¶
func (e FileValidationError) Cause() error
Cause function returns cause value.
func (FileValidationError) Error ¶
func (e FileValidationError) Error() string
Error satisfies the builtin error interface
func (FileValidationError) ErrorName ¶
func (e FileValidationError) ErrorName() string
ErrorName returns error name.
func (FileValidationError) Field ¶
func (e FileValidationError) Field() string
Field function returns field value.
func (FileValidationError) Key ¶
func (e FileValidationError) Key() bool
Key function returns key value.
func (FileValidationError) Reason ¶
func (e FileValidationError) Reason() string
Reason function returns reason value.
type ListFileReply ¶
type ListFileReply struct { List []*File `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
存储卷列表
func (*ListFileReply) Descriptor
deprecated
func (*ListFileReply) Descriptor() ([]byte, []int)
Deprecated: Use ListFileReply.ProtoReflect.Descriptor instead.
func (*ListFileReply) GetList ¶
func (x *ListFileReply) GetList() []*File
func (*ListFileReply) GetTotal ¶
func (x *ListFileReply) GetTotal() int64
func (*ListFileReply) ProtoMessage ¶
func (*ListFileReply) ProtoMessage()
func (*ListFileReply) ProtoReflect ¶
func (x *ListFileReply) ProtoReflect() protoreflect.Message
func (*ListFileReply) Reset ¶
func (x *ListFileReply) Reset()
func (*ListFileReply) String ¶
func (x *ListFileReply) String() string
func (*ListFileReply) Validate ¶
func (m *ListFileReply) Validate() error
Validate checks the field values on ListFileReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListFileReplyValidationError ¶
type ListFileReplyValidationError struct {
// contains filtered or unexported fields
}
ListFileReplyValidationError is the validation error returned by ListFileReply.Validate if the designated constraints aren't met.
func (ListFileReplyValidationError) Cause ¶
func (e ListFileReplyValidationError) Cause() error
Cause function returns cause value.
func (ListFileReplyValidationError) Error ¶
func (e ListFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListFileReplyValidationError) ErrorName ¶
func (e ListFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListFileReplyValidationError) Field ¶
func (e ListFileReplyValidationError) Field() string
Field function returns field value.
func (ListFileReplyValidationError) Key ¶
func (e ListFileReplyValidationError) Key() bool
Key function returns key value.
func (ListFileReplyValidationError) Reason ¶
func (e ListFileReplyValidationError) Reason() string
Reason function returns reason value.
type ListFileReq ¶
type ListFileReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // 类型 0 全部 1 目录 2 字符串 Type uint32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` // 公用列表查询条件 Option *v1.ListOption `protobuf:"bytes,99,opt,name=option,proto3" json:"option,omitempty"` // contains filtered or unexported fields }
func (*ListFileReq) Descriptor
deprecated
func (*ListFileReq) Descriptor() ([]byte, []int)
Deprecated: Use ListFileReq.ProtoReflect.Descriptor instead.
func (*ListFileReq) GetId ¶
func (x *ListFileReq) GetId() string
func (*ListFileReq) GetOption ¶
func (x *ListFileReq) GetOption() *v1.ListOption
func (*ListFileReq) GetPath ¶
func (x *ListFileReq) GetPath() string
func (*ListFileReq) GetType ¶
func (x *ListFileReq) GetType() uint32
func (*ListFileReq) ProtoMessage ¶
func (*ListFileReq) ProtoMessage()
func (*ListFileReq) ProtoReflect ¶
func (x *ListFileReq) ProtoReflect() protoreflect.Message
func (*ListFileReq) Reset ¶
func (x *ListFileReq) Reset()
func (*ListFileReq) String ¶
func (x *ListFileReq) String() string
func (*ListFileReq) Validate ¶
func (m *ListFileReq) Validate() error
Validate checks the field values on ListFileReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListFileReqValidationError ¶
type ListFileReqValidationError struct {
// contains filtered or unexported fields
}
ListFileReqValidationError is the validation error returned by ListFileReq.Validate if the designated constraints aren't met.
func (ListFileReqValidationError) Cause ¶
func (e ListFileReqValidationError) Cause() error
Cause function returns cause value.
func (ListFileReqValidationError) Error ¶
func (e ListFileReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListFileReqValidationError) ErrorName ¶
func (e ListFileReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListFileReqValidationError) Field ¶
func (e ListFileReqValidationError) Field() string
Field function returns field value.
func (ListFileReqValidationError) Key ¶
func (e ListFileReqValidationError) Key() bool
Key function returns key value.
func (ListFileReqValidationError) Reason ¶
func (e ListFileReqValidationError) Reason() string
Reason function returns reason value.
type ListVolumeReply ¶
type ListVolumeReply struct { List []*Volume `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
存储卷列表
func (*ListVolumeReply) Descriptor
deprecated
func (*ListVolumeReply) Descriptor() ([]byte, []int)
Deprecated: Use ListVolumeReply.ProtoReflect.Descriptor instead.
func (*ListVolumeReply) GetList ¶
func (x *ListVolumeReply) GetList() []*Volume
func (*ListVolumeReply) GetTotal ¶
func (x *ListVolumeReply) GetTotal() int64
func (*ListVolumeReply) ProtoMessage ¶
func (*ListVolumeReply) ProtoMessage()
func (*ListVolumeReply) ProtoReflect ¶
func (x *ListVolumeReply) ProtoReflect() protoreflect.Message
func (*ListVolumeReply) Reset ¶
func (x *ListVolumeReply) Reset()
func (*ListVolumeReply) String ¶
func (x *ListVolumeReply) String() string
func (*ListVolumeReply) Validate ¶
func (m *ListVolumeReply) Validate() error
Validate checks the field values on ListVolumeReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListVolumeReplyValidationError ¶
type ListVolumeReplyValidationError struct {
// contains filtered or unexported fields
}
ListVolumeReplyValidationError is the validation error returned by ListVolumeReply.Validate if the designated constraints aren't met.
func (ListVolumeReplyValidationError) Cause ¶
func (e ListVolumeReplyValidationError) Cause() error
Cause function returns cause value.
func (ListVolumeReplyValidationError) Error ¶
func (e ListVolumeReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListVolumeReplyValidationError) ErrorName ¶
func (e ListVolumeReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListVolumeReplyValidationError) Field ¶
func (e ListVolumeReplyValidationError) Field() string
Field function returns field value.
func (ListVolumeReplyValidationError) Key ¶
func (e ListVolumeReplyValidationError) Key() bool
Key function returns key value.
func (ListVolumeReplyValidationError) Reason ¶
func (e ListVolumeReplyValidationError) Reason() string
Reason function returns reason value.
type ListVolumeReq ¶
type ListVolumeReq struct {
// contains filtered or unexported fields
}
存储卷列表请求
func (*ListVolumeReq) Descriptor
deprecated
func (*ListVolumeReq) Descriptor() ([]byte, []int)
Deprecated: Use ListVolumeReq.ProtoReflect.Descriptor instead.
func (*ListVolumeReq) ProtoMessage ¶
func (*ListVolumeReq) ProtoMessage()
func (*ListVolumeReq) ProtoReflect ¶
func (x *ListVolumeReq) ProtoReflect() protoreflect.Message
func (*ListVolumeReq) Reset ¶
func (x *ListVolumeReq) Reset()
func (*ListVolumeReq) String ¶
func (x *ListVolumeReq) String() string
func (*ListVolumeReq) Validate ¶
func (m *ListVolumeReq) Validate() error
Validate checks the field values on ListVolumeReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListVolumeReqValidationError ¶
type ListVolumeReqValidationError struct {
// contains filtered or unexported fields
}
ListVolumeReqValidationError is the validation error returned by ListVolumeReq.Validate if the designated constraints aren't met.
func (ListVolumeReqValidationError) Cause ¶
func (e ListVolumeReqValidationError) Cause() error
Cause function returns cause value.
func (ListVolumeReqValidationError) Error ¶
func (e ListVolumeReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListVolumeReqValidationError) ErrorName ¶
func (e ListVolumeReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListVolumeReqValidationError) Field ¶
func (e ListVolumeReqValidationError) Field() string
Field function returns field value.
func (ListVolumeReqValidationError) Key ¶
func (e ListVolumeReqValidationError) Key() bool
Key function returns key value.
func (ListVolumeReqValidationError) Reason ¶
func (e ListVolumeReqValidationError) Reason() string
Reason function returns reason value.
type MoveCopyFileReq ¶
type MoveCopyFileReq struct { // 文件列表 Files []*FileReq `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` // 删除原文件 IsDelete bool `protobuf:"varint,2,opt,name=is_delete,json=isDelete,proto3" json:"is_delete,omitempty"` // 0 不覆盖 1 覆盖写入 2 重命名同时存在 WireType uint32 `protobuf:"varint,5,opt,name=wire_type,json=wireType,proto3" json:"wire_type,omitempty"` // 目标路径 ToPath string `protobuf:"bytes,3,opt,name=to_path,json=toPath,proto3" json:"to_path,omitempty"` // 目标卷ID ToVolumeId string `protobuf:"bytes,4,opt,name=to_volume_id,json=toVolumeId,proto3" json:"to_volume_id,omitempty"` // contains filtered or unexported fields }
func (*MoveCopyFileReq) Descriptor
deprecated
func (*MoveCopyFileReq) Descriptor() ([]byte, []int)
Deprecated: Use MoveCopyFileReq.ProtoReflect.Descriptor instead.
func (*MoveCopyFileReq) GetFiles ¶
func (x *MoveCopyFileReq) GetFiles() []*FileReq
func (*MoveCopyFileReq) GetIsDelete ¶
func (x *MoveCopyFileReq) GetIsDelete() bool
func (*MoveCopyFileReq) GetToPath ¶
func (x *MoveCopyFileReq) GetToPath() string
func (*MoveCopyFileReq) GetToVolumeId ¶
func (x *MoveCopyFileReq) GetToVolumeId() string
func (*MoveCopyFileReq) GetWireType ¶
func (x *MoveCopyFileReq) GetWireType() uint32
func (*MoveCopyFileReq) ProtoMessage ¶
func (*MoveCopyFileReq) ProtoMessage()
func (*MoveCopyFileReq) ProtoReflect ¶
func (x *MoveCopyFileReq) ProtoReflect() protoreflect.Message
func (*MoveCopyFileReq) Reset ¶
func (x *MoveCopyFileReq) Reset()
func (*MoveCopyFileReq) String ¶
func (x *MoveCopyFileReq) String() string
func (*MoveCopyFileReq) Validate ¶
func (m *MoveCopyFileReq) Validate() error
Validate checks the field values on MoveCopyFileReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type MoveCopyFileReqValidationError ¶
type MoveCopyFileReqValidationError struct {
// contains filtered or unexported fields
}
MoveCopyFileReqValidationError is the validation error returned by MoveCopyFileReq.Validate if the designated constraints aren't met.
func (MoveCopyFileReqValidationError) Cause ¶
func (e MoveCopyFileReqValidationError) Cause() error
Cause function returns cause value.
func (MoveCopyFileReqValidationError) Error ¶
func (e MoveCopyFileReqValidationError) Error() string
Error satisfies the builtin error interface
func (MoveCopyFileReqValidationError) ErrorName ¶
func (e MoveCopyFileReqValidationError) ErrorName() string
ErrorName returns error name.
func (MoveCopyFileReqValidationError) Field ¶
func (e MoveCopyFileReqValidationError) Field() string
Field function returns field value.
func (MoveCopyFileReqValidationError) Key ¶
func (e MoveCopyFileReqValidationError) Key() bool
Key function returns key value.
func (MoveCopyFileReqValidationError) Reason ¶
func (e MoveCopyFileReqValidationError) Reason() string
Reason function returns reason value.
type RenameFileReq ¶
type RenameFileReq struct { // 存储卷id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 文件/目录路径 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // 文件/目录路径 NewPath string `protobuf:"bytes,3,opt,name=new_path,json=newPath,proto3" json:"new_path,omitempty"` // 是否覆盖写入 IsCover bool `protobuf:"varint,4,opt,name=is_cover,json=isCover,proto3" json:"is_cover,omitempty"` // contains filtered or unexported fields }
func (*RenameFileReq) Descriptor
deprecated
func (*RenameFileReq) Descriptor() ([]byte, []int)
Deprecated: Use RenameFileReq.ProtoReflect.Descriptor instead.
func (*RenameFileReq) GetId ¶
func (x *RenameFileReq) GetId() string
func (*RenameFileReq) GetIsCover ¶
func (x *RenameFileReq) GetIsCover() bool
func (*RenameFileReq) GetNewPath ¶
func (x *RenameFileReq) GetNewPath() string
func (*RenameFileReq) GetPath ¶
func (x *RenameFileReq) GetPath() string
func (*RenameFileReq) ProtoMessage ¶
func (*RenameFileReq) ProtoMessage()
func (*RenameFileReq) ProtoReflect ¶
func (x *RenameFileReq) ProtoReflect() protoreflect.Message
func (*RenameFileReq) Reset ¶
func (x *RenameFileReq) Reset()
func (*RenameFileReq) String ¶
func (x *RenameFileReq) String() string
func (*RenameFileReq) Validate ¶
func (m *RenameFileReq) Validate() error
Validate checks the field values on RenameFileReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RenameFileReqValidationError ¶
type RenameFileReqValidationError struct {
// contains filtered or unexported fields
}
RenameFileReqValidationError is the validation error returned by RenameFileReq.Validate if the designated constraints aren't met.
func (RenameFileReqValidationError) Cause ¶
func (e RenameFileReqValidationError) Cause() error
Cause function returns cause value.
func (RenameFileReqValidationError) Error ¶
func (e RenameFileReqValidationError) Error() string
Error satisfies the builtin error interface
func (RenameFileReqValidationError) ErrorName ¶
func (e RenameFileReqValidationError) ErrorName() string
ErrorName returns error name.
func (RenameFileReqValidationError) Field ¶
func (e RenameFileReqValidationError) Field() string
Field function returns field value.
func (RenameFileReqValidationError) Key ¶
func (e RenameFileReqValidationError) Key() bool
Key function returns key value.
func (RenameFileReqValidationError) Reason ¶
func (e RenameFileReqValidationError) Reason() string
Reason function returns reason value.
type SaveFileReq ¶
type SaveFileReq struct { // 存储卷id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 文件/目录路径 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // 文件数据 Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
保存文件
func (*SaveFileReq) Descriptor
deprecated
func (*SaveFileReq) Descriptor() ([]byte, []int)
Deprecated: Use SaveFileReq.ProtoReflect.Descriptor instead.
func (*SaveFileReq) GetData ¶
func (x *SaveFileReq) GetData() string
func (*SaveFileReq) GetId ¶
func (x *SaveFileReq) GetId() string
func (*SaveFileReq) GetPath ¶
func (x *SaveFileReq) GetPath() string
func (*SaveFileReq) ProtoMessage ¶
func (*SaveFileReq) ProtoMessage()
func (*SaveFileReq) ProtoReflect ¶
func (x *SaveFileReq) ProtoReflect() protoreflect.Message
func (*SaveFileReq) Reset ¶
func (x *SaveFileReq) Reset()
func (*SaveFileReq) String ¶
func (x *SaveFileReq) String() string
type UnimplementedVolumeServiceServer ¶
type UnimplementedVolumeServiceServer struct { }
UnimplementedVolumeServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedVolumeServiceServer) CreateFile ¶
func (UnimplementedVolumeServiceServer) CreateFile(context.Context, *CreateFileReq) (*v1.Empty, error)
func (UnimplementedVolumeServiceServer) CreateVolume ¶
func (UnimplementedVolumeServiceServer) CreateVolume(context.Context, *CreateVolumeReq) (*Volume, error)
func (UnimplementedVolumeServiceServer) DelFile ¶
func (UnimplementedVolumeServiceServer) DelFile(context.Context, *DelFileReq) (*v1.Empty, error)
func (UnimplementedVolumeServiceServer) DeleteVolume ¶
func (UnimplementedVolumeServiceServer) DeleteVolume(context.Context, *DeleteVolumeReq) (*v1.Empty, error)
func (UnimplementedVolumeServiceServer) FileData ¶
func (UnimplementedVolumeServiceServer) FileData(context.Context, *FileReq) (*FileDataRes, error)
func (UnimplementedVolumeServiceServer) FileDown ¶
func (UnimplementedVolumeServiceServer) FileDown(context.Context, *FileReq) (*FileDownRes, error)
func (UnimplementedVolumeServiceServer) ListFile ¶
func (UnimplementedVolumeServiceServer) ListFile(context.Context, *ListFileReq) (*ListFileReply, error)
func (UnimplementedVolumeServiceServer) ListVolume ¶
func (UnimplementedVolumeServiceServer) ListVolume(context.Context, *ListVolumeReq) (*ListVolumeReply, error)
func (UnimplementedVolumeServiceServer) MoveAndCopyFile ¶
func (UnimplementedVolumeServiceServer) MoveAndCopyFile(context.Context, *MoveCopyFileReq) (*v1.Empty, error)
func (UnimplementedVolumeServiceServer) RenameFile ¶
func (UnimplementedVolumeServiceServer) RenameFile(context.Context, *RenameFileReq) (*v1.Empty, error)
func (UnimplementedVolumeServiceServer) SaveFile ¶
func (UnimplementedVolumeServiceServer) SaveFile(context.Context, *SaveFileReq) (*v1.Empty, error)
type UnsafeVolumeServiceServer ¶
type UnsafeVolumeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeVolumeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VolumeServiceServer will result in compilation errors.
type Volume ¶
type Volume struct { // 卷名 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 供应类型 local 本地 s3 oss cos nfs Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` // 配置 json string ProviderConfig string `protobuf:"bytes,3,opt,name=provider_config,json=providerConfig,proto3" json:"provider_config,omitempty"` // 卷id Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` // 创建时间 CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 更新时间 UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Volume) Descriptor
deprecated
func (*Volume) GetCreatedAt ¶
func (x *Volume) GetCreatedAt() *timestamppb.Timestamp
func (*Volume) GetProvider ¶
func (*Volume) GetProviderConfig ¶
func (*Volume) GetUpdatedAt ¶
func (x *Volume) GetUpdatedAt() *timestamppb.Timestamp
func (*Volume) ProtoMessage ¶
func (*Volume) ProtoMessage()
func (*Volume) ProtoReflect ¶
func (x *Volume) ProtoReflect() protoreflect.Message
type VolumeServiceClient ¶
type VolumeServiceClient interface { // 创建存储卷 CreateVolume(ctx context.Context, in *CreateVolumeReq, opts ...grpc.CallOption) (*Volume, error) // 删除存储卷 DeleteVolume(ctx context.Context, in *DeleteVolumeReq, opts ...grpc.CallOption) (*v1.Empty, error) // 存储卷列表 ListVolume(ctx context.Context, in *ListVolumeReq, opts ...grpc.CallOption) (*ListVolumeReply, error) // 文件列表 ListFile(ctx context.Context, in *ListFileReq, opts ...grpc.CallOption) (*ListFileReply, error) // 创建文件 CreateFile(ctx context.Context, in *CreateFileReq, opts ...grpc.CallOption) (*v1.Empty, error) // 保存文件内容用于文本保存 SaveFile(ctx context.Context, in *SaveFileReq, opts ...grpc.CallOption) (*v1.Empty, error) // 文件删除 DelFile(ctx context.Context, in *DelFileReq, opts ...grpc.CallOption) (*v1.Empty, error) // 移动与复制文件 MoveAndCopyFile(ctx context.Context, in *MoveCopyFileReq, opts ...grpc.CallOption) (*v1.Empty, error) // 重命名文件 RenameFile(ctx context.Context, in *RenameFileReq, opts ...grpc.CallOption) (*v1.Empty, error) // 获取文件下载地址 FileDown(ctx context.Context, in *FileReq, opts ...grpc.CallOption) (*FileDownRes, error) // 获取文件下载地址 FileData(ctx context.Context, in *FileReq, opts ...grpc.CallOption) (*FileDataRes, error) }
VolumeServiceClient is the client API for VolumeService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewVolumeServiceClient ¶
func NewVolumeServiceClient(cc grpc.ClientConnInterface) VolumeServiceClient
type VolumeServiceHTTPClient ¶
type VolumeServiceHTTPClient interface { CreateFile(ctx context.Context, req *CreateFileReq, opts ...http.CallOption) (rsp *v1.Empty, err error) CreateVolume(ctx context.Context, req *CreateVolumeReq, opts ...http.CallOption) (rsp *Volume, err error) DelFile(ctx context.Context, req *DelFileReq, opts ...http.CallOption) (rsp *v1.Empty, err error) DeleteVolume(ctx context.Context, req *DeleteVolumeReq, opts ...http.CallOption) (rsp *v1.Empty, err error) FileData(ctx context.Context, req *FileReq, opts ...http.CallOption) (rsp *FileDataRes, err error) FileDown(ctx context.Context, req *FileReq, opts ...http.CallOption) (rsp *FileDownRes, err error) ListFile(ctx context.Context, req *ListFileReq, opts ...http.CallOption) (rsp *ListFileReply, err error) ListVolume(ctx context.Context, req *ListVolumeReq, opts ...http.CallOption) (rsp *ListVolumeReply, err error) MoveAndCopyFile(ctx context.Context, req *MoveCopyFileReq, opts ...http.CallOption) (rsp *v1.Empty, err error) RenameFile(ctx context.Context, req *RenameFileReq, opts ...http.CallOption) (rsp *v1.Empty, err error) SaveFile(ctx context.Context, req *SaveFileReq, opts ...http.CallOption) (rsp *v1.Empty, err error) }
func NewVolumeServiceHTTPClient ¶
func NewVolumeServiceHTTPClient(client *http.Client) VolumeServiceHTTPClient
type VolumeServiceHTTPClientImpl ¶
type VolumeServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*VolumeServiceHTTPClientImpl) CreateFile ¶
func (c *VolumeServiceHTTPClientImpl) CreateFile(ctx context.Context, in *CreateFileReq, opts ...http.CallOption) (*v1.Empty, error)
func (*VolumeServiceHTTPClientImpl) CreateVolume ¶
func (c *VolumeServiceHTTPClientImpl) CreateVolume(ctx context.Context, in *CreateVolumeReq, opts ...http.CallOption) (*Volume, error)
func (*VolumeServiceHTTPClientImpl) DelFile ¶
func (c *VolumeServiceHTTPClientImpl) DelFile(ctx context.Context, in *DelFileReq, opts ...http.CallOption) (*v1.Empty, error)
func (*VolumeServiceHTTPClientImpl) DeleteVolume ¶
func (c *VolumeServiceHTTPClientImpl) DeleteVolume(ctx context.Context, in *DeleteVolumeReq, opts ...http.CallOption) (*v1.Empty, error)
func (*VolumeServiceHTTPClientImpl) FileData ¶
func (c *VolumeServiceHTTPClientImpl) FileData(ctx context.Context, in *FileReq, opts ...http.CallOption) (*FileDataRes, error)
func (*VolumeServiceHTTPClientImpl) FileDown ¶
func (c *VolumeServiceHTTPClientImpl) FileDown(ctx context.Context, in *FileReq, opts ...http.CallOption) (*FileDownRes, error)
func (*VolumeServiceHTTPClientImpl) ListFile ¶
func (c *VolumeServiceHTTPClientImpl) ListFile(ctx context.Context, in *ListFileReq, opts ...http.CallOption) (*ListFileReply, error)
func (*VolumeServiceHTTPClientImpl) ListVolume ¶
func (c *VolumeServiceHTTPClientImpl) ListVolume(ctx context.Context, in *ListVolumeReq, opts ...http.CallOption) (*ListVolumeReply, error)
func (*VolumeServiceHTTPClientImpl) MoveAndCopyFile ¶
func (c *VolumeServiceHTTPClientImpl) MoveAndCopyFile(ctx context.Context, in *MoveCopyFileReq, opts ...http.CallOption) (*v1.Empty, error)
func (*VolumeServiceHTTPClientImpl) RenameFile ¶
func (c *VolumeServiceHTTPClientImpl) RenameFile(ctx context.Context, in *RenameFileReq, opts ...http.CallOption) (*v1.Empty, error)
func (*VolumeServiceHTTPClientImpl) SaveFile ¶
func (c *VolumeServiceHTTPClientImpl) SaveFile(ctx context.Context, in *SaveFileReq, opts ...http.CallOption) (*v1.Empty, error)
type VolumeServiceHTTPServer ¶
type VolumeServiceHTTPServer interface { CreateFile(context.Context, *CreateFileReq) (*v1.Empty, error) CreateVolume(context.Context, *CreateVolumeReq) (*Volume, error) DelFile(context.Context, *DelFileReq) (*v1.Empty, error) DeleteVolume(context.Context, *DeleteVolumeReq) (*v1.Empty, error) FileData(context.Context, *FileReq) (*FileDataRes, error) FileDown(context.Context, *FileReq) (*FileDownRes, error) ListFile(context.Context, *ListFileReq) (*ListFileReply, error) ListVolume(context.Context, *ListVolumeReq) (*ListVolumeReply, error) MoveAndCopyFile(context.Context, *MoveCopyFileReq) (*v1.Empty, error) RenameFile(context.Context, *RenameFileReq) (*v1.Empty, error) SaveFile(context.Context, *SaveFileReq) (*v1.Empty, error) }
type VolumeServiceServer ¶
type VolumeServiceServer interface { // 创建存储卷 CreateVolume(context.Context, *CreateVolumeReq) (*Volume, error) // 删除存储卷 DeleteVolume(context.Context, *DeleteVolumeReq) (*v1.Empty, error) // 存储卷列表 ListVolume(context.Context, *ListVolumeReq) (*ListVolumeReply, error) // 文件列表 ListFile(context.Context, *ListFileReq) (*ListFileReply, error) // 创建文件 CreateFile(context.Context, *CreateFileReq) (*v1.Empty, error) // 保存文件内容用于文本保存 SaveFile(context.Context, *SaveFileReq) (*v1.Empty, error) // 文件删除 DelFile(context.Context, *DelFileReq) (*v1.Empty, error) // 移动与复制文件 MoveAndCopyFile(context.Context, *MoveCopyFileReq) (*v1.Empty, error) // 重命名文件 RenameFile(context.Context, *RenameFileReq) (*v1.Empty, error) // 获取文件下载地址 FileDown(context.Context, *FileReq) (*FileDownRes, error) // 获取文件下载地址 FileData(context.Context, *FileReq) (*FileDataRes, error) // contains filtered or unexported methods }
VolumeServiceServer is the server API for VolumeService service. All implementations must embed UnimplementedVolumeServiceServer for forward compatibility
type VolumeValidationError ¶
type VolumeValidationError struct {
// contains filtered or unexported fields
}
VolumeValidationError is the validation error returned by Volume.Validate if the designated constraints aren't met.
func (VolumeValidationError) Cause ¶
func (e VolumeValidationError) Cause() error
Cause function returns cause value.
func (VolumeValidationError) Error ¶
func (e VolumeValidationError) Error() string
Error satisfies the builtin error interface
func (VolumeValidationError) ErrorName ¶
func (e VolumeValidationError) ErrorName() string
ErrorName returns error name.
func (VolumeValidationError) Field ¶
func (e VolumeValidationError) Field() string
Field function returns field value.
func (VolumeValidationError) Key ¶
func (e VolumeValidationError) Key() bool
Key function returns key value.
func (VolumeValidationError) Reason ¶
func (e VolumeValidationError) Reason() string
Reason function returns reason value.