storage

package
v0.0.0-...-c590095 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Storage_GetDir_FullMethodName              = "/storage.Storage/GetDir"
	Storage_GetLink_FullMethodName             = "/storage.Storage/GetLink"
	Storage_GetDriverConfig_FullMethodName     = "/storage.Storage/GetDriverConfig"
	Storage_GetDriverAddtion_FullMethodName    = "/storage.Storage/GetDriverAddtion"
	Storage_Mkdir_FullMethodName               = "/storage.Storage/Mkdir"
	Storage_Rename_FullMethodName              = "/storage.Storage/Rename"
	Storage_Move_FullMethodName                = "/storage.Storage/Move"
	Storage_Copy_FullMethodName                = "/storage.Storage/Copy"
	Storage_Remove_FullMethodName              = "/storage.Storage/Remove"
	Storage_Put_FullMethodName                 = "/storage.Storage/Put"
	Storage_RefreshAll_FullMethodName          = "/storage.Storage/RefreshAll"
	Storage_GetSupportedDrivers_FullMethodName = "/storage.Storage/GetSupportedDrivers"
)

Variables

View Source
var File_storage_proto protoreflect.FileDescriptor
View Source
var Storage_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "storage.Storage",
	HandlerType: (*StorageServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetDir",
			Handler:    _Storage_GetDir_Handler,
		},
		{
			MethodName: "GetLink",
			Handler:    _Storage_GetLink_Handler,
		},
		{
			MethodName: "GetDriverConfig",
			Handler:    _Storage_GetDriverConfig_Handler,
		},
		{
			MethodName: "GetDriverAddtion",
			Handler:    _Storage_GetDriverAddtion_Handler,
		},
		{
			MethodName: "Mkdir",
			Handler:    _Storage_Mkdir_Handler,
		},
		{
			MethodName: "Rename",
			Handler:    _Storage_Rename_Handler,
		},
		{
			MethodName: "Move",
			Handler:    _Storage_Move_Handler,
		},
		{
			MethodName: "Copy",
			Handler:    _Storage_Copy_Handler,
		},
		{
			MethodName: "Remove",
			Handler:    _Storage_Remove_Handler,
		},
		{
			MethodName: "Put",
			Handler:    _Storage_Put_Handler,
		},
		{
			MethodName: "RefreshAll",
			Handler:    _Storage_RefreshAll_Handler,
		},
		{
			MethodName: "GetSupportedDrivers",
			Handler:    _Storage_GetSupportedDrivers_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "storage.proto",
}

Storage_ServiceDesc is the grpc.ServiceDesc for Storage service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterStorageServer

func RegisterStorageServer(s grpc.ServiceRegistrar, srv StorageServer)

Types

type DirInfo

type DirInfo struct {
	Storage  int64  `protobuf:"varint,1,opt,name=storage,proto3" json:"storage,omitempty"`
	ID       string `protobuf:"bytes,2,opt,name=iD,proto3" json:"iD,omitempty"`
	Path     string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	Name     string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Size     int64  `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
	Modified int64  `protobuf:"varint,6,opt,name=modified,proto3" json:"modified,omitempty"`
	IsFolder bool   `protobuf:"varint,7,opt,name=isFolder,proto3" json:"isFolder,omitempty"`
	// contains filtered or unexported fields
}

func (*DirInfo) Descriptor deprecated

func (*DirInfo) Descriptor() ([]byte, []int)

Deprecated: Use DirInfo.ProtoReflect.Descriptor instead.

func (*DirInfo) GetID

func (x *DirInfo) GetID() string

func (*DirInfo) GetIsFolder

func (x *DirInfo) GetIsFolder() bool

func (*DirInfo) GetModified

func (x *DirInfo) GetModified() int64

func (*DirInfo) GetName

func (x *DirInfo) GetName() string

func (*DirInfo) GetPath

func (x *DirInfo) GetPath() string

func (*DirInfo) GetSize

func (x *DirInfo) GetSize() int64

func (*DirInfo) GetStorage

func (x *DirInfo) GetStorage() int64

func (*DirInfo) ProtoMessage

func (*DirInfo) ProtoMessage()

func (*DirInfo) ProtoReflect

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

func (*DirInfo) Reset

func (x *DirInfo) Reset()

func (*DirInfo) String

func (x *DirInfo) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type GetDirReq

type GetDirReq struct {
	Dir     *DirInfo `protobuf:"bytes,1,opt,name=dir,proto3" json:"dir,omitempty"`
	PageReq *PageReq `protobuf:"bytes,2,opt,name=pageReq,proto3" json:"pageReq,omitempty"`
	Fresh   bool     `protobuf:"varint,3,opt,name=fresh,proto3" json:"fresh,omitempty"`
	Sort    *Sort    `protobuf:"bytes,4,opt,name=sort,proto3" json:"sort,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDirReq) Descriptor deprecated

func (*GetDirReq) Descriptor() ([]byte, []int)

Deprecated: Use GetDirReq.ProtoReflect.Descriptor instead.

func (*GetDirReq) GetDir

func (x *GetDirReq) GetDir() *DirInfo

func (*GetDirReq) GetFresh

func (x *GetDirReq) GetFresh() bool

func (*GetDirReq) GetPageReq

func (x *GetDirReq) GetPageReq() *PageReq

func (*GetDirReq) GetSort

func (x *GetDirReq) GetSort() *Sort

func (*GetDirReq) ProtoMessage

func (*GetDirReq) ProtoMessage()

func (*GetDirReq) ProtoReflect

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

func (*GetDirReq) Reset

func (x *GetDirReq) Reset()

func (*GetDirReq) String

func (x *GetDirReq) String() string

type GetDirRes

type GetDirRes struct {
	Dirs     []*DirInfo `protobuf:"bytes,1,rep,name=dirs,proto3" json:"dirs,omitempty"`
	Pageinof *PageReq   `protobuf:"bytes,2,opt,name=pageinof,proto3" json:"pageinof,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDirRes) Descriptor deprecated

func (*GetDirRes) Descriptor() ([]byte, []int)

Deprecated: Use GetDirRes.ProtoReflect.Descriptor instead.

func (*GetDirRes) GetDirs

func (x *GetDirRes) GetDirs() []*DirInfo

func (*GetDirRes) GetPageinof

func (x *GetDirRes) GetPageinof() *PageReq

func (*GetDirRes) ProtoMessage

func (*GetDirRes) ProtoMessage()

func (*GetDirRes) ProtoReflect

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

func (*GetDirRes) Reset

func (x *GetDirRes) Reset()

func (*GetDirRes) String

func (x *GetDirRes) String() string

type GetDriverAddtionReq

type GetDriverAddtionReq struct {
	DriverName string `protobuf:"bytes,1,opt,name=driverName,proto3" json:"driverName,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDriverAddtionReq) Descriptor deprecated

func (*GetDriverAddtionReq) Descriptor() ([]byte, []int)

Deprecated: Use GetDriverAddtionReq.ProtoReflect.Descriptor instead.

func (*GetDriverAddtionReq) GetDriverName

func (x *GetDriverAddtionReq) GetDriverName() string

func (*GetDriverAddtionReq) ProtoMessage

func (*GetDriverAddtionReq) ProtoMessage()

func (*GetDriverAddtionReq) ProtoReflect

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

func (*GetDriverAddtionReq) Reset

func (x *GetDriverAddtionReq) Reset()

func (*GetDriverAddtionReq) String

func (x *GetDriverAddtionReq) String() string

type GetDriverAddtionRes

type GetDriverAddtionRes struct {
	Addtion string `protobuf:"bytes,1,opt,name=addtion,proto3" json:"addtion,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDriverAddtionRes) Descriptor deprecated

func (*GetDriverAddtionRes) Descriptor() ([]byte, []int)

Deprecated: Use GetDriverAddtionRes.ProtoReflect.Descriptor instead.

func (*GetDriverAddtionRes) GetAddtion

func (x *GetDriverAddtionRes) GetAddtion() string

func (*GetDriverAddtionRes) ProtoMessage

func (*GetDriverAddtionRes) ProtoMessage()

func (*GetDriverAddtionRes) ProtoReflect

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

func (*GetDriverAddtionRes) Reset

func (x *GetDriverAddtionRes) Reset()

func (*GetDriverAddtionRes) String

func (x *GetDriverAddtionRes) String() string

type GetDriverConfigReq

type GetDriverConfigReq struct {
	DriverName string `protobuf:"bytes,1,opt,name=driverName,proto3" json:"driverName,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDriverConfigReq) Descriptor deprecated

func (*GetDriverConfigReq) Descriptor() ([]byte, []int)

Deprecated: Use GetDriverConfigReq.ProtoReflect.Descriptor instead.

func (*GetDriverConfigReq) GetDriverName

func (x *GetDriverConfigReq) GetDriverName() string

func (*GetDriverConfigReq) ProtoMessage

func (*GetDriverConfigReq) ProtoMessage()

func (*GetDriverConfigReq) ProtoReflect

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

func (*GetDriverConfigReq) Reset

func (x *GetDriverConfigReq) Reset()

func (*GetDriverConfigReq) String

func (x *GetDriverConfigReq) String() string

type GetDriverConfigRes

type GetDriverConfigRes struct {
	Config string `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDriverConfigRes) Descriptor deprecated

func (*GetDriverConfigRes) Descriptor() ([]byte, []int)

Deprecated: Use GetDriverConfigRes.ProtoReflect.Descriptor instead.

func (*GetDriverConfigRes) GetConfig

func (x *GetDriverConfigRes) GetConfig() string

func (*GetDriverConfigRes) ProtoMessage

func (*GetDriverConfigRes) ProtoMessage()

func (*GetDriverConfigRes) ProtoReflect

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

func (*GetDriverConfigRes) Reset

func (x *GetDriverConfigRes) Reset()

func (*GetDriverConfigRes) String

func (x *GetDriverConfigRes) String() string

type GetLinkReq

type GetLinkReq struct {
	DirInfo  *DirInfo  `protobuf:"bytes,1,opt,name=dirInfo,proto3" json:"dirInfo,omitempty"`
	LinkArgs *LinkArgs `protobuf:"bytes,2,opt,name=linkArgs,proto3" json:"linkArgs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLinkReq) Descriptor deprecated

func (*GetLinkReq) Descriptor() ([]byte, []int)

Deprecated: Use GetLinkReq.ProtoReflect.Descriptor instead.

func (*GetLinkReq) GetDirInfo

func (x *GetLinkReq) GetDirInfo() *DirInfo

func (*GetLinkReq) GetLinkArgs

func (x *GetLinkReq) GetLinkArgs() *LinkArgs

func (*GetLinkReq) ProtoMessage

func (*GetLinkReq) ProtoMessage()

func (*GetLinkReq) ProtoReflect

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

func (*GetLinkReq) Reset

func (x *GetLinkReq) Reset()

func (*GetLinkReq) String

func (x *GetLinkReq) String() string

type GetLinkRes

type GetLinkRes struct {
	Link *Link `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLinkRes) Descriptor deprecated

func (*GetLinkRes) Descriptor() ([]byte, []int)

Deprecated: Use GetLinkRes.ProtoReflect.Descriptor instead.

func (x *GetLinkRes) GetLink() *Link

func (*GetLinkRes) ProtoMessage

func (*GetLinkRes) ProtoMessage()

func (*GetLinkRes) ProtoReflect

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

func (*GetLinkRes) Reset

func (x *GetLinkRes) Reset()

func (*GetLinkRes) String

func (x *GetLinkRes) String() string

type GetSupportedDriversRes

type GetSupportedDriversRes struct {
	Res map[string]string `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetSupportedDriversRes) Descriptor deprecated

func (*GetSupportedDriversRes) Descriptor() ([]byte, []int)

Deprecated: Use GetSupportedDriversRes.ProtoReflect.Descriptor instead.

func (*GetSupportedDriversRes) GetRes

func (x *GetSupportedDriversRes) GetRes() map[string]string

func (*GetSupportedDriversRes) ProtoMessage

func (*GetSupportedDriversRes) ProtoMessage()

func (*GetSupportedDriversRes) ProtoReflect

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

func (*GetSupportedDriversRes) Reset

func (x *GetSupportedDriversRes) Reset()

func (*GetSupportedDriversRes) String

func (x *GetSupportedDriversRes) String() string
type Link struct {
	Url        string                `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Header     map[string]*StringArr `` /* 153-byte string literal not displayed */
	Status     int64                 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	FilePath   string                `protobuf:"bytes,4,opt,name=filePath,proto3" json:"filePath,omitempty"`
	Expiration int64                 `protobuf:"varint,5,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// contains filtered or unexported fields
}

func (*Link) Descriptor deprecated

func (*Link) Descriptor() ([]byte, []int)

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetExpiration

func (x *Link) GetExpiration() int64

func (*Link) GetFilePath

func (x *Link) GetFilePath() string

func (*Link) GetHeader

func (x *Link) GetHeader() map[string]*StringArr

func (*Link) GetStatus

func (x *Link) GetStatus() int64

func (*Link) GetUrl

func (x *Link) GetUrl() string

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) ProtoReflect

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

func (*Link) Reset

func (x *Link) Reset()

func (*Link) String

func (x *Link) String() string

type LinkArgs

type LinkArgs struct {
	IP     string                `protobuf:"bytes,1,opt,name=iP,proto3" json:"iP,omitempty"`
	Header map[string]*StringArr `` /* 153-byte string literal not displayed */
	Type   string                `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*LinkArgs) Descriptor deprecated

func (*LinkArgs) Descriptor() ([]byte, []int)

Deprecated: Use LinkArgs.ProtoReflect.Descriptor instead.

func (*LinkArgs) GetHeader

func (x *LinkArgs) GetHeader() map[string]*StringArr

func (*LinkArgs) GetIP

func (x *LinkArgs) GetIP() string

func (*LinkArgs) GetType

func (x *LinkArgs) GetType() string

func (*LinkArgs) ProtoMessage

func (*LinkArgs) ProtoMessage()

func (*LinkArgs) ProtoReflect

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

func (*LinkArgs) Reset

func (x *LinkArgs) Reset()

func (*LinkArgs) String

func (x *LinkArgs) String() string

type MakeDirReq

type MakeDirReq struct {
	ParentDir *DirInfo `protobuf:"bytes,1,opt,name=parentDir,proto3" json:"parentDir,omitempty"`
	DirName   string   `protobuf:"bytes,2,opt,name=dirName,proto3" json:"dirName,omitempty"`
	// contains filtered or unexported fields
}

func (*MakeDirReq) Descriptor deprecated

func (*MakeDirReq) Descriptor() ([]byte, []int)

Deprecated: Use MakeDirReq.ProtoReflect.Descriptor instead.

func (*MakeDirReq) GetDirName

func (x *MakeDirReq) GetDirName() string

func (*MakeDirReq) GetParentDir

func (x *MakeDirReq) GetParentDir() *DirInfo

func (*MakeDirReq) ProtoMessage

func (*MakeDirReq) ProtoMessage()

func (*MakeDirReq) ProtoReflect

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

func (*MakeDirReq) Reset

func (x *MakeDirReq) Reset()

func (*MakeDirReq) String

func (x *MakeDirReq) String() string

type MakeDirRes

type MakeDirRes struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*MakeDirRes) Descriptor deprecated

func (*MakeDirRes) Descriptor() ([]byte, []int)

Deprecated: Use MakeDirRes.ProtoReflect.Descriptor instead.

func (*MakeDirRes) GetId

func (x *MakeDirRes) GetId() string

func (*MakeDirRes) ProtoMessage

func (*MakeDirRes) ProtoMessage()

func (*MakeDirRes) ProtoReflect

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

func (*MakeDirRes) Reset

func (x *MakeDirRes) Reset()

func (*MakeDirRes) String

func (x *MakeDirRes) String() string

type MoveCopyReq

type MoveCopyReq struct {
	SrcDir *DirInfo `protobuf:"bytes,1,opt,name=srcDir,proto3" json:"srcDir,omitempty"`
	DesDir *DirInfo `protobuf:"bytes,2,opt,name=desDir,proto3" json:"desDir,omitempty"`
	// contains filtered or unexported fields
}

func (*MoveCopyReq) Descriptor deprecated

func (*MoveCopyReq) Descriptor() ([]byte, []int)

Deprecated: Use MoveCopyReq.ProtoReflect.Descriptor instead.

func (*MoveCopyReq) GetDesDir

func (x *MoveCopyReq) GetDesDir() *DirInfo

func (*MoveCopyReq) GetSrcDir

func (x *MoveCopyReq) GetSrcDir() *DirInfo

func (*MoveCopyReq) ProtoMessage

func (*MoveCopyReq) ProtoMessage()

func (*MoveCopyReq) ProtoReflect

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

func (*MoveCopyReq) Reset

func (x *MoveCopyReq) Reset()

func (*MoveCopyReq) String

func (x *MoveCopyReq) String() string

type MoveCopyRes

type MoveCopyRes struct {
	DirInfo *DirInfo `protobuf:"bytes,1,opt,name=dirInfo,proto3" json:"dirInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*MoveCopyRes) Descriptor deprecated

func (*MoveCopyRes) Descriptor() ([]byte, []int)

Deprecated: Use MoveCopyRes.ProtoReflect.Descriptor instead.

func (*MoveCopyRes) GetDirInfo

func (x *MoveCopyRes) GetDirInfo() *DirInfo

func (*MoveCopyRes) ProtoMessage

func (*MoveCopyRes) ProtoMessage()

func (*MoveCopyRes) ProtoReflect

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

func (*MoveCopyRes) Reset

func (x *MoveCopyRes) Reset()

func (*MoveCopyRes) String

func (x *MoveCopyRes) String() string

type PageReq

type PageReq struct {
	Page     int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*PageReq) Descriptor deprecated

func (*PageReq) Descriptor() ([]byte, []int)

Deprecated: Use PageReq.ProtoReflect.Descriptor instead.

func (*PageReq) GetPage

func (x *PageReq) GetPage() int64

func (*PageReq) GetPageSize

func (x *PageReq) GetPageSize() int64

func (*PageReq) ProtoMessage

func (*PageReq) ProtoMessage()

func (*PageReq) ProtoReflect

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

func (*PageReq) Reset

func (x *PageReq) Reset()

func (*PageReq) String

func (x *PageReq) String() string

type PutReq

type PutReq struct {
	DirInfo *DirInfo `protobuf:"bytes,1,opt,name=dirInfo,proto3" json:"dirInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*PutReq) Descriptor deprecated

func (*PutReq) Descriptor() ([]byte, []int)

Deprecated: Use PutReq.ProtoReflect.Descriptor instead.

func (*PutReq) GetDirInfo

func (x *PutReq) GetDirInfo() *DirInfo

func (*PutReq) ProtoMessage

func (*PutReq) ProtoMessage()

func (*PutReq) ProtoReflect

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

func (*PutReq) Reset

func (x *PutReq) Reset()

func (*PutReq) String

func (x *PutReq) String() string

type PutRes

type PutRes struct {
	DirInfo *DirInfo `protobuf:"bytes,1,opt,name=dirInfo,proto3" json:"dirInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*PutRes) Descriptor deprecated

func (*PutRes) Descriptor() ([]byte, []int)

Deprecated: Use PutRes.ProtoReflect.Descriptor instead.

func (*PutRes) GetDirInfo

func (x *PutRes) GetDirInfo() *DirInfo

func (*PutRes) ProtoMessage

func (*PutRes) ProtoMessage()

func (*PutRes) ProtoReflect

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

func (*PutRes) Reset

func (x *PutRes) Reset()

func (*PutRes) String

func (x *PutRes) String() string

type RemoveReq

type RemoveReq struct {
	DirInfo *DirInfo `protobuf:"bytes,1,opt,name=dirInfo,proto3" json:"dirInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveReq) Descriptor deprecated

func (*RemoveReq) Descriptor() ([]byte, []int)

Deprecated: Use RemoveReq.ProtoReflect.Descriptor instead.

func (*RemoveReq) GetDirInfo

func (x *RemoveReq) GetDirInfo() *DirInfo

func (*RemoveReq) ProtoMessage

func (*RemoveReq) ProtoMessage()

func (*RemoveReq) ProtoReflect

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

func (*RemoveReq) Reset

func (x *RemoveReq) Reset()

func (*RemoveReq) String

func (x *RemoveReq) String() string

type RemoveRes

type RemoveRes struct {
	DirInfo *DirInfo `protobuf:"bytes,1,opt,name=dirInfo,proto3" json:"dirInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveRes) Descriptor deprecated

func (*RemoveRes) Descriptor() ([]byte, []int)

Deprecated: Use RemoveRes.ProtoReflect.Descriptor instead.

func (*RemoveRes) GetDirInfo

func (x *RemoveRes) GetDirInfo() *DirInfo

func (*RemoveRes) ProtoMessage

func (*RemoveRes) ProtoMessage()

func (*RemoveRes) ProtoReflect

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

func (*RemoveRes) Reset

func (x *RemoveRes) Reset()

func (*RemoveRes) String

func (x *RemoveRes) String() string

type RenameReq

type RenameReq struct {
	DirInfo *DirInfo `protobuf:"bytes,1,opt,name=dirInfo,proto3" json:"dirInfo,omitempty"`
	DirName string   `protobuf:"bytes,2,opt,name=dirName,proto3" json:"dirName,omitempty"`
	// contains filtered or unexported fields
}

func (*RenameReq) Descriptor deprecated

func (*RenameReq) Descriptor() ([]byte, []int)

Deprecated: Use RenameReq.ProtoReflect.Descriptor instead.

func (*RenameReq) GetDirInfo

func (x *RenameReq) GetDirInfo() *DirInfo

func (*RenameReq) GetDirName

func (x *RenameReq) GetDirName() string

func (*RenameReq) ProtoMessage

func (*RenameReq) ProtoMessage()

func (*RenameReq) ProtoReflect

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

func (*RenameReq) Reset

func (x *RenameReq) Reset()

func (*RenameReq) String

func (x *RenameReq) String() string

type Sort

type Sort struct {
	OrderBy        string `protobuf:"bytes,1,opt,name=orderBy,proto3" json:"orderBy,omitempty"`
	OrderDirection string `protobuf:"bytes,2,opt,name=orderDirection,proto3" json:"orderDirection,omitempty"`
	ExtractFolder  string `protobuf:"bytes,3,opt,name=extractFolder,proto3" json:"extractFolder,omitempty"`
	// contains filtered or unexported fields
}

func (*Sort) Descriptor deprecated

func (*Sort) Descriptor() ([]byte, []int)

Deprecated: Use Sort.ProtoReflect.Descriptor instead.

func (*Sort) GetExtractFolder

func (x *Sort) GetExtractFolder() string

func (*Sort) GetOrderBy

func (x *Sort) GetOrderBy() string

func (*Sort) GetOrderDirection

func (x *Sort) GetOrderDirection() string

func (*Sort) ProtoMessage

func (*Sort) ProtoMessage()

func (*Sort) ProtoReflect

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

func (*Sort) Reset

func (x *Sort) Reset()

func (*Sort) String

func (x *Sort) String() string

type StorageClient

type StorageClient interface {
	GetDir(ctx context.Context, in *GetDirReq, opts ...grpc.CallOption) (*GetDirRes, error)
	GetLink(ctx context.Context, in *GetLinkReq, opts ...grpc.CallOption) (*GetLinkRes, error)
	GetDriverConfig(ctx context.Context, in *GetDriverConfigReq, opts ...grpc.CallOption) (*GetDriverConfigRes, error)
	GetDriverAddtion(ctx context.Context, in *GetDriverAddtionReq, opts ...grpc.CallOption) (*GetDriverAddtionRes, error)
	Mkdir(ctx context.Context, in *MakeDirReq, opts ...grpc.CallOption) (*Empty, error)
	Rename(ctx context.Context, in *RenameReq, opts ...grpc.CallOption) (*Empty, error)
	Move(ctx context.Context, in *MoveCopyReq, opts ...grpc.CallOption) (*MoveCopyRes, error)
	Copy(ctx context.Context, in *MoveCopyReq, opts ...grpc.CallOption) (*MoveCopyRes, error)
	Remove(ctx context.Context, in *RemoveReq, opts ...grpc.CallOption) (*Empty, error)
	Put(ctx context.Context, in *PutReq, opts ...grpc.CallOption) (*PutRes, error)
	RefreshAll(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	GetSupportedDrivers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetSupportedDriversRes, error)
}

StorageClient is the client API for Storage 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 NewStorageClient

func NewStorageClient(cc grpc.ClientConnInterface) StorageClient

type StorageServer

type StorageServer interface {
	GetDir(context.Context, *GetDirReq) (*GetDirRes, error)
	GetLink(context.Context, *GetLinkReq) (*GetLinkRes, error)
	GetDriverConfig(context.Context, *GetDriverConfigReq) (*GetDriverConfigRes, error)
	GetDriverAddtion(context.Context, *GetDriverAddtionReq) (*GetDriverAddtionRes, error)
	Mkdir(context.Context, *MakeDirReq) (*Empty, error)
	Rename(context.Context, *RenameReq) (*Empty, error)
	Move(context.Context, *MoveCopyReq) (*MoveCopyRes, error)
	Copy(context.Context, *MoveCopyReq) (*MoveCopyRes, error)
	Remove(context.Context, *RemoveReq) (*Empty, error)
	Put(context.Context, *PutReq) (*PutRes, error)
	RefreshAll(context.Context, *Empty) (*Empty, error)
	GetSupportedDrivers(context.Context, *Empty) (*GetSupportedDriversRes, error)
	// contains filtered or unexported methods
}

StorageServer is the server API for Storage service. All implementations must embed UnimplementedStorageServer for forward compatibility

type StringArr

type StringArr struct {
	S []string `protobuf:"bytes,1,rep,name=s,proto3" json:"s,omitempty"`
	// contains filtered or unexported fields
}

func (*StringArr) Descriptor deprecated

func (*StringArr) Descriptor() ([]byte, []int)

Deprecated: Use StringArr.ProtoReflect.Descriptor instead.

func (*StringArr) GetS

func (x *StringArr) GetS() []string

func (*StringArr) ProtoMessage

func (*StringArr) ProtoMessage()

func (*StringArr) ProtoReflect

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

func (*StringArr) Reset

func (x *StringArr) Reset()

func (*StringArr) String

func (x *StringArr) String() string

type UnimplementedStorageServer

type UnimplementedStorageServer struct {
}

UnimplementedStorageServer must be embedded to have forward compatible implementations.

func (UnimplementedStorageServer) Copy

func (UnimplementedStorageServer) GetDir

func (UnimplementedStorageServer) GetDriverAddtion

func (UnimplementedStorageServer) GetDriverConfig

func (UnimplementedStorageServer) GetSupportedDrivers

func (UnimplementedStorageServer) Mkdir

func (UnimplementedStorageServer) Move

func (UnimplementedStorageServer) Put

func (UnimplementedStorageServer) RefreshAll

func (UnimplementedStorageServer) Remove

func (UnimplementedStorageServer) Rename

type UnsafeStorageServer

type UnsafeStorageServer interface {
	// contains filtered or unexported methods
}

UnsafeStorageServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StorageServer will result in compilation errors.

Jump to

Keyboard shortcuts

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