Versions in this module Expand all Collapse all v0 v0.4.6 Sep 9, 2022 Changes in this version + const ProtocolId + var ActionType_name = map[int32]string + var ActionType_value = map[string]int32 + var EntryType_name = map[int32]string + var EntryType_value = map[string]int32 + var File_newFile_proto protoreflect.FileDescriptor + func Handle(ctx context.Context, api fxiface.CoreAPI, ds drive.DriveStore, ...) error + func HandleDelete(ctx context.Context, api fxiface.CoreAPI, ds drive.DriveStore, path string, ...) error + func HandleLs(ctx context.Context, api fxiface.CoreAPI, ds drive.DriveStore, path string, ...) error + func HandleMkDir(ctx context.Context, api fxiface.CoreAPI, ds drive.DriveStore, path string, ...) error + func HandleRead(ctx context.Context, api fxiface.CoreAPI, ds drive.DriveStore, path string, ...) error + func HandleWrite(ctx context.Context, api fxiface.CoreAPI, ds drive.DriveStore, path string, ...) error + func RequestDelete(ctx context.Context, s network.Stream, path string, userDID string) error + func RequestMkDir(ctx context.Context, s network.Stream, path string, userDID string) (string, error) + func RequestRead(ctx context.Context, s network.Stream, path string, userDID string) (io.Reader, error) + func RequestWrite(ctx context.Context, s network.Stream, path string, userDID string, ...) (string, error) + type ActionType int32 + const ActionType_DELETE + const ActionType_LS + const ActionType_MKDIR + const ActionType_READ + const ActionType_WRITE + func (ActionType) Descriptor() protoreflect.EnumDescriptor + func (ActionType) EnumDescriptor() ([]byte, []int) + func (ActionType) Type() protoreflect.EnumType + func (x ActionType) Enum() *ActionType + func (x ActionType) Number() protoreflect.EnumNumber + func (x ActionType) String() string + type DirEntries struct + Items []*DirEntry + func RequestLs(ctx context.Context, s network.Stream, path string, userDID string) (*DirEntries, error) + func (*DirEntries) Descriptor() ([]byte, []int) + func (*DirEntries) ProtoMessage() + func (x *DirEntries) GetItems() []*DirEntry + func (x *DirEntries) ProtoReflect() protoreflect.Message + func (x *DirEntries) Reset() + func (x *DirEntries) String() string + type DirEntry struct + Cid string + Name string + Size int32 + Type EntryType + func (*DirEntry) Descriptor() ([]byte, []int) + func (*DirEntry) ProtoMessage() + func (x *DirEntry) GetCid() string + func (x *DirEntry) GetName() string + func (x *DirEntry) GetSize() int32 + func (x *DirEntry) GetType() EntryType + func (x *DirEntry) ProtoReflect() protoreflect.Message + func (x *DirEntry) Reset() + func (x *DirEntry) String() string + type EntryType int32 + const EntryType_DIRECTORY + const EntryType_FILE + func (EntryType) Descriptor() protoreflect.EnumDescriptor + func (EntryType) EnumDescriptor() ([]byte, []int) + func (EntryType) Type() protoreflect.EnumType + func (x EntryType) Enum() *EntryType + func (x EntryType) Number() protoreflect.EnumNumber + func (x EntryType) String() string + type FSRequest struct + Action ActionType + DID string + Path string + Signature []byte + func (*FSRequest) Descriptor() ([]byte, []int) + func (*FSRequest) ProtoMessage() + func (x *FSRequest) GetAction() ActionType + func (x *FSRequest) GetDID() string + func (x *FSRequest) GetPath() string + func (x *FSRequest) GetSignature() []byte + func (x *FSRequest) ProtoReflect() protoreflect.Message + func (x *FSRequest) Reset() + func (x *FSRequest) String() string + type File struct + D []int32 + Name string + func (*File) Descriptor() ([]byte, []int) + func (*File) ProtoMessage() + func (x *File) GetD() []int32 + func (x *File) GetName() string + func (x *File) ProtoReflect() protoreflect.Message + func (x *File) Reset() + func (x *File) String() string + type Payload struct + D []int32 + func (*Payload) Descriptor() ([]byte, []int) + func (*Payload) ProtoMessage() + func (x *Payload) GetD() []int32 + func (x *Payload) ProtoReflect() protoreflect.Message + func (x *Payload) Reset() + func (x *Payload) String() string + type Response struct + Action ActionType + Body isResponse_Body + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (m *Response) GetBody() isResponse_Body + func (x *Response) GetAction() ActionType + func (x *Response) GetCid() string + func (x *Response) GetEntries() *DirEntries + func (x *Response) GetFile() *File + func (x *Response) ProtoReflect() protoreflect.Message + func (x *Response) Reset() + func (x *Response) String() string + type Response_Cid struct + Cid string + type Response_Entries struct + Entries *DirEntries + type Response_File struct + File *File