storageV1

package
v0.0.0-...-75939a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_storage_v1_volume_proto protoreflect.FileDescriptor
View Source
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

Cause function returns cause value.

func (CreateFileReqValidationError) Error

Error satisfies the builtin error interface

func (CreateFileReqValidationError) ErrorName

func (e CreateFileReqValidationError) ErrorName() string

ErrorName returns error name.

func (CreateFileReqValidationError) Field

Field function returns field value.

func (CreateFileReqValidationError) Key

Key function returns key value.

func (CreateFileReqValidationError) Reason

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

Cause function returns cause value.

func (CreateVolumeReqValidationError) Error

Error satisfies the builtin error interface

func (CreateVolumeReqValidationError) ErrorName

func (e CreateVolumeReqValidationError) ErrorName() string

ErrorName returns error name.

func (CreateVolumeReqValidationError) Field

Field function returns field value.

func (CreateVolumeReqValidationError) Key

Key function returns key value.

func (CreateVolumeReqValidationError) Reason

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

Error satisfies the builtin error interface

func (DelFileReqValidationError) ErrorName

func (e DelFileReqValidationError) ErrorName() string

ErrorName returns error name.

func (DelFileReqValidationError) Field

Field function returns field value.

func (DelFileReqValidationError) Key

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

Cause function returns cause value.

func (DeleteVolumeReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteVolumeReqValidationError) ErrorName

func (e DeleteVolumeReqValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteVolumeReqValidationError) Field

Field function returns field value.

func (DeleteVolumeReqValidationError) Key

Key function returns key value.

func (DeleteVolumeReqValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetExt

func (x *File) GetExt() string

func (*File) GetIsDir

func (x *File) GetIsDir() bool

func (*File) GetName

func (x *File) GetName() string

func (*File) GetPath

func (x *File) GetPath() string

func (*File) GetSize

func (x *File) GetSize() int64

func (*File) GetUpdatedAt

func (x *File) GetUpdatedAt() int64

func (*File) GetVolumeId

func (x *File) GetVolumeId() string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

func (x *File) ProtoReflect() protoreflect.Message

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

func (*File) Validate

func (m *File) Validate() error

Validate checks the field values on File with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

Cause function returns cause value.

func (FileDataResValidationError) Error

Error satisfies the builtin error interface

func (FileDataResValidationError) ErrorName

func (e FileDataResValidationError) ErrorName() string

ErrorName returns error name.

func (FileDataResValidationError) Field

Field function returns field value.

func (FileDataResValidationError) Key

Key function returns key value.

func (FileDataResValidationError) Reason

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

Cause function returns cause value.

func (FileDownResValidationError) Error

Error satisfies the builtin error interface

func (FileDownResValidationError) ErrorName

func (e FileDownResValidationError) ErrorName() string

ErrorName returns error name.

func (FileDownResValidationError) Field

Field function returns field value.

func (FileDownResValidationError) Key

Key function returns key value.

func (FileDownResValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use FileReq.ProtoReflect.Descriptor instead.

func (*FileReq) GetId

func (x *FileReq) GetId() string

func (*FileReq) GetPath

func (x *FileReq) GetPath() string

func (*FileReq) ProtoMessage

func (*FileReq) ProtoMessage()

func (*FileReq) ProtoReflect

func (x *FileReq) ProtoReflect() protoreflect.Message

func (*FileReq) Reset

func (x *FileReq) Reset()

func (*FileReq) String

func (x *FileReq) String() string

func (*FileReq) Validate

func (m *FileReq) Validate() error

Validate checks the field values on FileReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

Cause function returns cause value.

func (ListFileReplyValidationError) Error

Error satisfies the builtin error interface

func (ListFileReplyValidationError) ErrorName

func (e ListFileReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListFileReplyValidationError) Field

Field function returns field value.

func (ListFileReplyValidationError) Key

Key function returns key value.

func (ListFileReplyValidationError) Reason

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

Cause function returns cause value.

func (ListFileReqValidationError) Error

Error satisfies the builtin error interface

func (ListFileReqValidationError) ErrorName

func (e ListFileReqValidationError) ErrorName() string

ErrorName returns error name.

func (ListFileReqValidationError) Field

Field function returns field value.

func (ListFileReqValidationError) Key

Key function returns key value.

func (ListFileReqValidationError) Reason

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

Cause function returns cause value.

func (ListVolumeReplyValidationError) Error

Error satisfies the builtin error interface

func (ListVolumeReplyValidationError) ErrorName

func (e ListVolumeReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListVolumeReplyValidationError) Field

Field function returns field value.

func (ListVolumeReplyValidationError) Key

Key function returns key value.

func (ListVolumeReplyValidationError) Reason

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

Cause function returns cause value.

func (ListVolumeReqValidationError) Error

Error satisfies the builtin error interface

func (ListVolumeReqValidationError) ErrorName

func (e ListVolumeReqValidationError) ErrorName() string

ErrorName returns error name.

func (ListVolumeReqValidationError) Field

Field function returns field value.

func (ListVolumeReqValidationError) Key

Key function returns key value.

func (ListVolumeReqValidationError) Reason

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

Cause function returns cause value.

func (MoveCopyFileReqValidationError) Error

Error satisfies the builtin error interface

func (MoveCopyFileReqValidationError) ErrorName

func (e MoveCopyFileReqValidationError) ErrorName() string

ErrorName returns error name.

func (MoveCopyFileReqValidationError) Field

Field function returns field value.

func (MoveCopyFileReqValidationError) Key

Key function returns key value.

func (MoveCopyFileReqValidationError) Reason

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

Cause function returns cause value.

func (RenameFileReqValidationError) Error

Error satisfies the builtin error interface

func (RenameFileReqValidationError) ErrorName

func (e RenameFileReqValidationError) ErrorName() string

ErrorName returns error name.

func (RenameFileReqValidationError) Field

Field function returns field value.

func (RenameFileReqValidationError) Key

Key function returns key value.

func (RenameFileReqValidationError) Reason

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) CreateVolume

func (UnimplementedVolumeServiceServer) DelFile

func (UnimplementedVolumeServiceServer) DeleteVolume

func (UnimplementedVolumeServiceServer) FileData

func (UnimplementedVolumeServiceServer) FileDown

func (UnimplementedVolumeServiceServer) ListFile

func (UnimplementedVolumeServiceServer) ListVolume

func (UnimplementedVolumeServiceServer) MoveAndCopyFile

func (UnimplementedVolumeServiceServer) RenameFile

func (UnimplementedVolumeServiceServer) SaveFile

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) Descriptor() ([]byte, []int)

Deprecated: Use Volume.ProtoReflect.Descriptor instead.

func (*Volume) GetCreatedAt

func (x *Volume) GetCreatedAt() *timestamppb.Timestamp

func (*Volume) GetId

func (x *Volume) GetId() string

func (*Volume) GetName

func (x *Volume) GetName() string

func (*Volume) GetProvider

func (x *Volume) GetProvider() string

func (*Volume) GetProviderConfig

func (x *Volume) GetProviderConfig() string

func (*Volume) GetUpdatedAt

func (x *Volume) GetUpdatedAt() *timestamppb.Timestamp

func (*Volume) ProtoMessage

func (*Volume) ProtoMessage()

func (*Volume) ProtoReflect

func (x *Volume) ProtoReflect() protoreflect.Message

func (*Volume) Reset

func (x *Volume) Reset()

func (*Volume) String

func (x *Volume) String() string

func (*Volume) Validate

func (m *Volume) Validate() error

Validate checks the field values on Volume with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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.

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 (*VolumeServiceHTTPClientImpl) DeleteVolume

func (c *VolumeServiceHTTPClientImpl) DeleteVolume(ctx context.Context, in *DeleteVolumeReq, opts ...http.CallOption) (*v1.Empty, error)

func (*VolumeServiceHTTPClientImpl) FileData

func (*VolumeServiceHTTPClientImpl) FileDown

func (*VolumeServiceHTTPClientImpl) ListFile

func (*VolumeServiceHTTPClientImpl) ListVolume

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL