Documentation
¶
Index ¶
- Variables
- func ContextGetAccessToken(ctx context.Context) (string, bool)
- func ContextGetPublicLinkToken(ctx context.Context) (string, bool)
- func ContextSetAccessToken(ctx context.Context, token string) context.Context
- func ContextSetPublicLink(ctx context.Context, pl *PublicLink) context.Context
- func ContextSetPublicLinkToken(ctx context.Context, token string) context.Context
- func ContextSetUser(ctx context.Context, u *User) context.Context
- func DetectMimeType(isDir bool, path string) string
- func IsErrorCode(err error, code ErrorCode) bool
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- func RegisterPreviewServer(s *grpc.Server, srv PreviewServer)
- func RegisterShareServer(s *grpc.Server, srv ShareServer)
- func RegisterStorageServer(s *grpc.Server, srv StorageServer)
- func RegisterTaggerServer(s *grpc.Server, srv TaggerServer)
- type ACLReq
- func (*ACLReq) Descriptor() ([]byte, []int)
- func (m *ACLReq) GetPath() string
- func (m *ACLReq) GetReadOnly() bool
- func (m *ACLReq) GetRecipient() *ShareRecipient
- func (m *ACLReq) GetShares() []*FolderShare
- func (*ACLReq) ProtoMessage()
- func (m *ACLReq) Reset()
- func (m *ACLReq) String() string
- func (m *ACLReq) XXX_DiscardUnknown()
- func (m *ACLReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ACLReq) XXX_Merge(src proto.Message)
- func (m *ACLReq) XXX_Size() int
- func (m *ACLReq) XXX_Unmarshal(b []byte) error
- type AppError
- type AuthClient
- type AuthManager
- type AuthServer
- type DataChunk
- func (*DataChunk) Descriptor() ([]byte, []int)
- func (m *DataChunk) GetData() []byte
- func (m *DataChunk) GetLength() uint64
- func (m *DataChunk) GetOffset() uint64
- func (*DataChunk) ProtoMessage()
- func (m *DataChunk) Reset()
- func (m *DataChunk) String() string
- func (m *DataChunk) XXX_DiscardUnknown()
- func (m *DataChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataChunk) XXX_Merge(src proto.Message)
- func (m *DataChunk) XXX_Size() int
- func (m *DataChunk) XXX_Unmarshal(b []byte) error
- type DataChunkResponse
- func (*DataChunkResponse) Descriptor() ([]byte, []int)
- func (m *DataChunkResponse) GetDataChunk() *DataChunk
- func (m *DataChunkResponse) GetStatus() StatusCode
- func (*DataChunkResponse) ProtoMessage()
- func (m *DataChunkResponse) Reset()
- func (m *DataChunkResponse) String() string
- func (m *DataChunkResponse) XXX_DiscardUnknown()
- func (m *DataChunkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataChunkResponse) XXX_Merge(src proto.Message)
- func (m *DataChunkResponse) XXX_Size() int
- func (m *DataChunkResponse) XXX_Unmarshal(b []byte) error
- type EmptyReq
- func (*EmptyReq) Descriptor() ([]byte, []int)
- func (*EmptyReq) ProtoMessage()
- func (m *EmptyReq) Reset()
- func (m *EmptyReq) String() string
- func (m *EmptyReq) XXX_DiscardUnknown()
- func (m *EmptyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EmptyReq) XXX_Merge(src proto.Message)
- func (m *EmptyReq) XXX_Size() int
- func (m *EmptyReq) XXX_Unmarshal(b []byte) error
- type EmptyResponse
- func (*EmptyResponse) Descriptor() ([]byte, []int)
- func (m *EmptyResponse) GetStatus() StatusCode
- func (*EmptyResponse) ProtoMessage()
- func (m *EmptyResponse) Reset()
- func (m *EmptyResponse) String() string
- func (m *EmptyResponse) XXX_DiscardUnknown()
- func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EmptyResponse) XXX_Merge(src proto.Message)
- func (m *EmptyResponse) XXX_Size() int
- func (m *EmptyResponse) XXX_Unmarshal(b []byte) error
- type ErrorCode
- type FolderShare
- func (*FolderShare) Descriptor() ([]byte, []int)
- func (m *FolderShare) GetCtime() uint64
- func (m *FolderShare) GetId() string
- func (m *FolderShare) GetMtime() uint64
- func (m *FolderShare) GetOwnerId() string
- func (m *FolderShare) GetPath() string
- func (m *FolderShare) GetReadOnly() bool
- func (m *FolderShare) GetRecipient() *ShareRecipient
- func (m *FolderShare) GetState() FolderShare_State
- func (m *FolderShare) GetTarget() string
- func (*FolderShare) ProtoMessage()
- func (m *FolderShare) Reset()
- func (m *FolderShare) String() string
- func (m *FolderShare) XXX_DiscardUnknown()
- func (m *FolderShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FolderShare) XXX_Merge(src proto.Message)
- func (m *FolderShare) XXX_Size() int
- func (m *FolderShare) XXX_Unmarshal(b []byte) error
- type FolderShareResponse
- func (*FolderShareResponse) Descriptor() ([]byte, []int)
- func (m *FolderShareResponse) GetFolderShare() *FolderShare
- func (m *FolderShareResponse) GetStatus() StatusCode
- func (*FolderShareResponse) ProtoMessage()
- func (m *FolderShareResponse) Reset()
- func (m *FolderShareResponse) String() string
- func (m *FolderShareResponse) XXX_DiscardUnknown()
- func (m *FolderShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FolderShareResponse) XXX_Merge(src proto.Message)
- func (m *FolderShareResponse) XXX_Size() int
- func (m *FolderShareResponse) XXX_Unmarshal(b []byte) error
- type FolderShare_State
- type ForgePublicLinkTokenReq
- func (*ForgePublicLinkTokenReq) Descriptor() ([]byte, []int)
- func (m *ForgePublicLinkTokenReq) GetPassword() string
- func (m *ForgePublicLinkTokenReq) GetToken() string
- func (*ForgePublicLinkTokenReq) ProtoMessage()
- func (m *ForgePublicLinkTokenReq) Reset()
- func (m *ForgePublicLinkTokenReq) String() string
- func (m *ForgePublicLinkTokenReq) XXX_DiscardUnknown()
- func (m *ForgePublicLinkTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ForgePublicLinkTokenReq) XXX_Merge(src proto.Message)
- func (m *ForgePublicLinkTokenReq) XXX_Size() int
- func (m *ForgePublicLinkTokenReq) XXX_Unmarshal(b []byte) error
- type ForgePublicLinkTokenResponse
- func (*ForgePublicLinkTokenResponse) Descriptor() ([]byte, []int)
- func (m *ForgePublicLinkTokenResponse) GetStatus() StatusCode
- func (m *ForgePublicLinkTokenResponse) GetValid() bool
- func (*ForgePublicLinkTokenResponse) ProtoMessage()
- func (m *ForgePublicLinkTokenResponse) Reset()
- func (m *ForgePublicLinkTokenResponse) String() string
- func (m *ForgePublicLinkTokenResponse) XXX_DiscardUnknown()
- func (m *ForgePublicLinkTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ForgePublicLinkTokenResponse) XXX_Merge(src proto.Message)
- func (m *ForgePublicLinkTokenResponse) XXX_Size() int
- func (m *ForgePublicLinkTokenResponse) XXX_Unmarshal(b []byte) error
- type ForgeUserTokenReq
- func (*ForgeUserTokenReq) Descriptor() ([]byte, []int)
- func (m *ForgeUserTokenReq) GetClientId() string
- func (m *ForgeUserTokenReq) GetClientSecret() string
- func (*ForgeUserTokenReq) ProtoMessage()
- func (m *ForgeUserTokenReq) Reset()
- func (m *ForgeUserTokenReq) String() string
- func (m *ForgeUserTokenReq) XXX_DiscardUnknown()
- func (m *ForgeUserTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ForgeUserTokenReq) XXX_Merge(src proto.Message)
- func (m *ForgeUserTokenReq) XXX_Size() int
- func (m *ForgeUserTokenReq) XXX_Unmarshal(b []byte) error
- type IsPublicLinkProtectedResponse
- func (*IsPublicLinkProtectedResponse) Descriptor() ([]byte, []int)
- func (m *IsPublicLinkProtectedResponse) GetProtected() bool
- func (m *IsPublicLinkProtectedResponse) GetStatus() StatusCode
- func (*IsPublicLinkProtectedResponse) ProtoMessage()
- func (m *IsPublicLinkProtectedResponse) Reset()
- func (m *IsPublicLinkProtectedResponse) String() string
- func (m *IsPublicLinkProtectedResponse) XXX_DiscardUnknown()
- func (m *IsPublicLinkProtectedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IsPublicLinkProtectedResponse) XXX_Merge(src proto.Message)
- func (m *IsPublicLinkProtectedResponse) XXX_Size() int
- func (m *IsPublicLinkProtectedResponse) XXX_Unmarshal(b []byte) error
- type LinkPermissions
- func (*LinkPermissions) Descriptor() ([]byte, []int)
- func (m *LinkPermissions) GetRead() bool
- func (m *LinkPermissions) GetWrite() bool
- func (*LinkPermissions) ProtoMessage()
- func (m *LinkPermissions) Reset()
- func (m *LinkPermissions) String() string
- func (m *LinkPermissions) XXX_DiscardUnknown()
- func (m *LinkPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LinkPermissions) XXX_Merge(src proto.Message)
- func (m *LinkPermissions) XXX_Size() int
- func (m *LinkPermissions) XXX_Unmarshal(b []byte) error
- type ListFolderSharesReq
- func (*ListFolderSharesReq) Descriptor() ([]byte, []int)
- func (m *ListFolderSharesReq) GetPath() string
- func (*ListFolderSharesReq) ProtoMessage()
- func (m *ListFolderSharesReq) Reset()
- func (m *ListFolderSharesReq) String() string
- func (m *ListFolderSharesReq) XXX_DiscardUnknown()
- func (m *ListFolderSharesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListFolderSharesReq) XXX_Merge(src proto.Message)
- func (m *ListFolderSharesReq) XXX_Size() int
- func (m *ListFolderSharesReq) XXX_Unmarshal(b []byte) error
- type ListPublicLinksReq
- func (*ListPublicLinksReq) Descriptor() ([]byte, []int)
- func (m *ListPublicLinksReq) GetPath() string
- func (*ListPublicLinksReq) ProtoMessage()
- func (m *ListPublicLinksReq) Reset()
- func (m *ListPublicLinksReq) String() string
- func (m *ListPublicLinksReq) XXX_DiscardUnknown()
- func (m *ListPublicLinksReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListPublicLinksReq) XXX_Merge(src proto.Message)
- func (m *ListPublicLinksReq) XXX_Size() int
- func (m *ListPublicLinksReq) XXX_Unmarshal(b []byte) error
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (m *Metadata) GetChecksum() string
- func (m *Metadata) GetDerefPath() string
- func (m *Metadata) GetEosFile() string
- func (m *Metadata) GetEosInstance() string
- func (m *Metadata) GetEtag() string
- func (m *Metadata) GetId() string
- func (m *Metadata) GetIsDir() bool
- func (m *Metadata) GetIsReadOnly() bool
- func (m *Metadata) GetIsShareable() bool
- func (m *Metadata) GetMigId() string
- func (m *Metadata) GetMigPath() string
- func (m *Metadata) GetMime() string
- func (m *Metadata) GetMtime() uint64
- func (m *Metadata) GetPath() string
- func (m *Metadata) GetShareTarget() string
- func (m *Metadata) GetSize() uint64
- func (m *Metadata) GetSys() []byte
- func (m *Metadata) GetTreeCount() uint64
- func (*Metadata) ProtoMessage()
- func (m *Metadata) Reset()
- func (m *Metadata) String() string
- func (m *Metadata) XXX_DiscardUnknown()
- func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metadata) XXX_Merge(src proto.Message)
- func (m *Metadata) XXX_Size() int
- func (m *Metadata) XXX_Unmarshal(b []byte) error
- type MetadataResponse
- func (*MetadataResponse) Descriptor() ([]byte, []int)
- func (m *MetadataResponse) GetMetadata() *Metadata
- func (m *MetadataResponse) GetStatus() StatusCode
- func (*MetadataResponse) ProtoMessage()
- func (m *MetadataResponse) Reset()
- func (m *MetadataResponse) String() string
- func (m *MetadataResponse) XXX_DiscardUnknown()
- func (m *MetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MetadataResponse) XXX_Merge(src proto.Message)
- func (m *MetadataResponse) XXX_Size() int
- func (m *MetadataResponse) XXX_Unmarshal(b []byte) error
- type Mount
- type MountOptions
- type MountTable
- type MountTableEntry
- type MoveReq
- func (*MoveReq) Descriptor() ([]byte, []int)
- func (m *MoveReq) GetNewPath() string
- func (m *MoveReq) GetOldPath() string
- func (*MoveReq) ProtoMessage()
- func (m *MoveReq) Reset()
- func (m *MoveReq) String() string
- func (m *MoveReq) XXX_DiscardUnknown()
- func (m *MoveReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MoveReq) XXX_Merge(src proto.Message)
- func (m *MoveReq) XXX_Size() int
- func (m *MoveReq) XXX_Unmarshal(b []byte) error
- type NewFolderShareReq
- func (*NewFolderShareReq) Descriptor() ([]byte, []int)
- func (m *NewFolderShareReq) GetPath() string
- func (m *NewFolderShareReq) GetReadOnly() bool
- func (m *NewFolderShareReq) GetRecipient() *ShareRecipient
- func (*NewFolderShareReq) ProtoMessage()
- func (m *NewFolderShareReq) Reset()
- func (m *NewFolderShareReq) String() string
- func (m *NewFolderShareReq) XXX_DiscardUnknown()
- func (m *NewFolderShareReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NewFolderShareReq) XXX_Merge(src proto.Message)
- func (m *NewFolderShareReq) XXX_Size() int
- func (m *NewFolderShareReq) XXX_Unmarshal(b []byte) error
- type NewLinkReq
- func (*NewLinkReq) Descriptor() ([]byte, []int)
- func (m *NewLinkReq) GetDropOnly() bool
- func (m *NewLinkReq) GetExpires() uint64
- func (m *NewLinkReq) GetPassword() string
- func (m *NewLinkReq) GetPath() string
- func (m *NewLinkReq) GetReadOnly() bool
- func (*NewLinkReq) ProtoMessage()
- func (m *NewLinkReq) Reset()
- func (m *NewLinkReq) String() string
- func (m *NewLinkReq) XXX_DiscardUnknown()
- func (m *NewLinkReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NewLinkReq) XXX_Merge(src proto.Message)
- func (m *NewLinkReq) XXX_Size() int
- func (m *NewLinkReq) XXX_Unmarshal(b []byte) error
- type PathReq
- func (*PathReq) Descriptor() ([]byte, []int)
- func (m *PathReq) GetPath() string
- func (*PathReq) ProtoMessage()
- func (m *PathReq) Reset()
- func (m *PathReq) String() string
- func (m *PathReq) XXX_DiscardUnknown()
- func (m *PathReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PathReq) XXX_Merge(src proto.Message)
- func (m *PathReq) XXX_Size() int
- func (m *PathReq) XXX_Unmarshal(b []byte) error
- type PreviewClient
- type PreviewServer
- type Preview_ReadPreviewClient
- type Preview_ReadPreviewServer
- type Project
- type ProjectManager
- type PublicLink
- func (*PublicLink) Descriptor() ([]byte, []int)
- func (m *PublicLink) GetDropOnly() bool
- func (m *PublicLink) GetExpires() uint64
- func (m *PublicLink) GetId() string
- func (m *PublicLink) GetItemType() PublicLink_ItemType
- func (m *PublicLink) GetMtime() uint64
- func (m *PublicLink) GetName() string
- func (m *PublicLink) GetOwnerId() string
- func (m *PublicLink) GetPath() string
- func (m *PublicLink) GetProtected() bool
- func (m *PublicLink) GetReadOnly() bool
- func (m *PublicLink) GetToken() string
- func (*PublicLink) ProtoMessage()
- func (m *PublicLink) Reset()
- func (m *PublicLink) String() string
- func (m *PublicLink) XXX_DiscardUnknown()
- func (m *PublicLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublicLink) XXX_Merge(src proto.Message)
- func (m *PublicLink) XXX_Size() int
- func (m *PublicLink) XXX_Unmarshal(b []byte) error
- type PublicLinkManager
- type PublicLinkOptions
- type PublicLinkResponse
- func (*PublicLinkResponse) Descriptor() ([]byte, []int)
- func (m *PublicLinkResponse) GetPublicLink() *PublicLink
- func (m *PublicLinkResponse) GetStatus() StatusCode
- func (*PublicLinkResponse) ProtoMessage()
- func (m *PublicLinkResponse) Reset()
- func (m *PublicLinkResponse) String() string
- func (m *PublicLinkResponse) XXX_DiscardUnknown()
- func (m *PublicLinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublicLinkResponse) XXX_Merge(src proto.Message)
- func (m *PublicLinkResponse) XXX_Size() int
- func (m *PublicLinkResponse) XXX_Unmarshal(b []byte) error
- type PublicLinkTokenReq
- func (*PublicLinkTokenReq) Descriptor() ([]byte, []int)
- func (m *PublicLinkTokenReq) GetToken() string
- func (*PublicLinkTokenReq) ProtoMessage()
- func (m *PublicLinkTokenReq) Reset()
- func (m *PublicLinkTokenReq) String() string
- func (m *PublicLinkTokenReq) XXX_DiscardUnknown()
- func (m *PublicLinkTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublicLinkTokenReq) XXX_Merge(src proto.Message)
- func (m *PublicLinkTokenReq) XXX_Size() int
- func (m *PublicLinkTokenReq) XXX_Unmarshal(b []byte) error
- type PublicLink_ItemType
- type QuotaReq
- func (*QuotaReq) Descriptor() ([]byte, []int)
- func (m *QuotaReq) GetPath() string
- func (*QuotaReq) ProtoMessage()
- func (m *QuotaReq) Reset()
- func (m *QuotaReq) String() string
- func (m *QuotaReq) XXX_DiscardUnknown()
- func (m *QuotaReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuotaReq) XXX_Merge(src proto.Message)
- func (m *QuotaReq) XXX_Size() int
- func (m *QuotaReq) XXX_Unmarshal(b []byte) error
- type QuotaResponse
- func (*QuotaResponse) Descriptor() ([]byte, []int)
- func (m *QuotaResponse) GetStatus() StatusCode
- func (m *QuotaResponse) GetTotalBytes() int64
- func (m *QuotaResponse) GetUsedBytes() int64
- func (*QuotaResponse) ProtoMessage()
- func (m *QuotaResponse) Reset()
- func (m *QuotaResponse) String() string
- func (m *QuotaResponse) XXX_DiscardUnknown()
- func (m *QuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuotaResponse) XXX_Merge(src proto.Message)
- func (m *QuotaResponse) XXX_Size() int
- func (m *QuotaResponse) XXX_Unmarshal(b []byte) error
- type ReceivedShareReq
- func (*ReceivedShareReq) Descriptor() ([]byte, []int)
- func (m *ReceivedShareReq) GetShareId() string
- func (*ReceivedShareReq) ProtoMessage()
- func (m *ReceivedShareReq) Reset()
- func (m *ReceivedShareReq) String() string
- func (m *ReceivedShareReq) XXX_DiscardUnknown()
- func (m *ReceivedShareReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceivedShareReq) XXX_Merge(src proto.Message)
- func (m *ReceivedShareReq) XXX_Size() int
- func (m *ReceivedShareReq) XXX_Unmarshal(b []byte) error
- type ReceivedShareResponse
- func (*ReceivedShareResponse) Descriptor() ([]byte, []int)
- func (m *ReceivedShareResponse) GetShare() *FolderShare
- func (m *ReceivedShareResponse) GetStatus() StatusCode
- func (*ReceivedShareResponse) ProtoMessage()
- func (m *ReceivedShareResponse) Reset()
- func (m *ReceivedShareResponse) String() string
- func (m *ReceivedShareResponse) XXX_DiscardUnknown()
- func (m *ReceivedShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceivedShareResponse) XXX_Merge(src proto.Message)
- func (m *ReceivedShareResponse) XXX_Size() int
- func (m *ReceivedShareResponse) XXX_Unmarshal(b []byte) error
- type RecycleEntry
- func (*RecycleEntry) Descriptor() ([]byte, []int)
- func (m *RecycleEntry) GetDelMtime() uint64
- func (m *RecycleEntry) GetIsDir() bool
- func (m *RecycleEntry) GetRestoreKey() string
- func (m *RecycleEntry) GetRestorePath() string
- func (m *RecycleEntry) GetSize() uint64
- func (*RecycleEntry) ProtoMessage()
- func (m *RecycleEntry) Reset()
- func (m *RecycleEntry) String() string
- func (m *RecycleEntry) XXX_DiscardUnknown()
- func (m *RecycleEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecycleEntry) XXX_Merge(src proto.Message)
- func (m *RecycleEntry) XXX_Size() int
- func (m *RecycleEntry) XXX_Unmarshal(b []byte) error
- type RecycleEntryReq
- func (*RecycleEntryReq) Descriptor() ([]byte, []int)
- func (m *RecycleEntryReq) GetRestoreKey() string
- func (*RecycleEntryReq) ProtoMessage()
- func (m *RecycleEntryReq) Reset()
- func (m *RecycleEntryReq) String() string
- func (m *RecycleEntryReq) XXX_DiscardUnknown()
- func (m *RecycleEntryReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecycleEntryReq) XXX_Merge(src proto.Message)
- func (m *RecycleEntryReq) XXX_Size() int
- func (m *RecycleEntryReq) XXX_Unmarshal(b []byte) error
- type RecycleEntryResponse
- func (*RecycleEntryResponse) Descriptor() ([]byte, []int)
- func (m *RecycleEntryResponse) GetRecycleEntry() *RecycleEntry
- func (m *RecycleEntryResponse) GetStatus() StatusCode
- func (*RecycleEntryResponse) ProtoMessage()
- func (m *RecycleEntryResponse) Reset()
- func (m *RecycleEntryResponse) String() string
- func (m *RecycleEntryResponse) XXX_DiscardUnknown()
- func (m *RecycleEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecycleEntryResponse) XXX_Merge(src proto.Message)
- func (m *RecycleEntryResponse) XXX_Size() int
- func (m *RecycleEntryResponse) XXX_Unmarshal(b []byte) error
- type Revision
- func (*Revision) Descriptor() ([]byte, []int)
- func (m *Revision) GetIsDir() bool
- func (m *Revision) GetMtime() uint64
- func (m *Revision) GetRevKey() string
- func (m *Revision) GetSize() uint64
- func (*Revision) ProtoMessage()
- func (m *Revision) Reset()
- func (m *Revision) String() string
- func (m *Revision) XXX_DiscardUnknown()
- func (m *Revision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Revision) XXX_Merge(src proto.Message)
- func (m *Revision) XXX_Size() int
- func (m *Revision) XXX_Unmarshal(b []byte) error
- type RevisionReq
- func (*RevisionReq) Descriptor() ([]byte, []int)
- func (m *RevisionReq) GetPath() string
- func (m *RevisionReq) GetRevKey() string
- func (*RevisionReq) ProtoMessage()
- func (m *RevisionReq) Reset()
- func (m *RevisionReq) String() string
- func (m *RevisionReq) XXX_DiscardUnknown()
- func (m *RevisionReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RevisionReq) XXX_Merge(src proto.Message)
- func (m *RevisionReq) XXX_Size() int
- func (m *RevisionReq) XXX_Unmarshal(b []byte) error
- type RevisionResponse
- func (*RevisionResponse) Descriptor() ([]byte, []int)
- func (m *RevisionResponse) GetRevision() *Revision
- func (m *RevisionResponse) GetStatus() StatusCode
- func (*RevisionResponse) ProtoMessage()
- func (m *RevisionResponse) Reset()
- func (m *RevisionResponse) String() string
- func (m *RevisionResponse) XXX_DiscardUnknown()
- func (m *RevisionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RevisionResponse) XXX_Merge(src proto.Message)
- func (m *RevisionResponse) XXX_Size() int
- func (m *RevisionResponse) XXX_Unmarshal(b []byte) error
- type ShareClient
- type ShareIDReq
- func (*ShareIDReq) Descriptor() ([]byte, []int)
- func (m *ShareIDReq) GetId() string
- func (*ShareIDReq) ProtoMessage()
- func (m *ShareIDReq) Reset()
- func (m *ShareIDReq) String() string
- func (m *ShareIDReq) XXX_DiscardUnknown()
- func (m *ShareIDReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ShareIDReq) XXX_Merge(src proto.Message)
- func (m *ShareIDReq) XXX_Size() int
- func (m *ShareIDReq) XXX_Unmarshal(b []byte) error
- type ShareManager
- type ShareRecipient
- func (*ShareRecipient) Descriptor() ([]byte, []int)
- func (m *ShareRecipient) GetIdentity() string
- func (m *ShareRecipient) GetType() ShareRecipient_RecipientType
- func (*ShareRecipient) ProtoMessage()
- func (m *ShareRecipient) Reset()
- func (m *ShareRecipient) String() string
- func (m *ShareRecipient) XXX_DiscardUnknown()
- func (m *ShareRecipient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ShareRecipient) XXX_Merge(src proto.Message)
- func (m *ShareRecipient) XXX_Size() int
- func (m *ShareRecipient) XXX_Unmarshal(b []byte) error
- type ShareRecipient_RecipientType
- type ShareServer
- type Share_ListFolderSharesClient
- type Share_ListFolderSharesServer
- type Share_ListPublicLinksClient
- type Share_ListPublicLinksServer
- type Share_ListReceivedSharesClient
- type Share_ListReceivedSharesServer
- type StatusCode
- type Storage
- type StorageClient
- type StorageServer
- type StorageWrapper
- type Storage_ListFolderClient
- type Storage_ListFolderServer
- type Storage_ListRecycleClient
- type Storage_ListRecycleServer
- type Storage_ListRevisionsClient
- type Storage_ListRevisionsServer
- type Storage_ReadFileClient
- type Storage_ReadFileServer
- type Storage_ReadRevisionClient
- type Storage_ReadRevisionServer
- type Storage_WriteChunkClient
- type Storage_WriteChunkServer
- type Tag
- func (*Tag) Descriptor() ([]byte, []int)
- func (m *Tag) GetFileId() string
- func (m *Tag) GetFileIdPrefix() string
- func (m *Tag) GetId() int64
- func (m *Tag) GetItemType() Tag_ItemType
- func (m *Tag) GetTagKey() string
- func (m *Tag) GetTagValue() string
- func (m *Tag) GetUid() string
- func (*Tag) ProtoMessage()
- func (m *Tag) Reset()
- func (m *Tag) String() string
- func (m *Tag) XXX_DiscardUnknown()
- func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tag) XXX_Merge(src proto.Message)
- func (m *Tag) XXX_Size() int
- func (m *Tag) XXX_Unmarshal(b []byte) error
- type TagManager
- type TagReq
- func (*TagReq) Descriptor() ([]byte, []int)
- func (m *TagReq) GetPath() string
- func (m *TagReq) GetTagKey() string
- func (m *TagReq) GetTagVal() string
- func (*TagReq) ProtoMessage()
- func (m *TagReq) Reset()
- func (m *TagReq) String() string
- func (m *TagReq) XXX_DiscardUnknown()
- func (m *TagReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TagReq) XXX_Merge(src proto.Message)
- func (m *TagReq) XXX_Size() int
- func (m *TagReq) XXX_Unmarshal(b []byte) error
- type TagResponse
- func (*TagResponse) Descriptor() ([]byte, []int)
- func (m *TagResponse) GetStatus() StatusCode
- func (m *TagResponse) GetTag() *Tag
- func (*TagResponse) ProtoMessage()
- func (m *TagResponse) Reset()
- func (m *TagResponse) String() string
- func (m *TagResponse) XXX_DiscardUnknown()
- func (m *TagResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TagResponse) XXX_Merge(src proto.Message)
- func (m *TagResponse) XXX_Size() int
- func (m *TagResponse) XXX_Unmarshal(b []byte) error
- type Tag_ItemType
- type TaggerClient
- type TaggerServer
- type Tagger_GetTagsClient
- type Tagger_GetTagsServer
- type TokenManager
- type TokenReq
- func (*TokenReq) Descriptor() ([]byte, []int)
- func (m *TokenReq) GetToken() string
- func (*TokenReq) ProtoMessage()
- func (m *TokenReq) Reset()
- func (m *TokenReq) String() string
- func (m *TokenReq) XXX_DiscardUnknown()
- func (m *TokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenReq) XXX_Merge(src proto.Message)
- func (m *TokenReq) XXX_Size() int
- func (m *TokenReq) XXX_Unmarshal(b []byte) error
- type TokenResponse
- func (*TokenResponse) Descriptor() ([]byte, []int)
- func (m *TokenResponse) GetStatus() StatusCode
- func (m *TokenResponse) GetToken() string
- func (*TokenResponse) ProtoMessage()
- func (m *TokenResponse) Reset()
- func (m *TokenResponse) String() string
- func (m *TokenResponse) XXX_DiscardUnknown()
- func (m *TokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenResponse) XXX_Merge(src proto.Message)
- func (m *TokenResponse) XXX_Size() int
- func (m *TokenResponse) XXX_Unmarshal(b []byte) error
- type TxChunk
- func (*TxChunk) Descriptor() ([]byte, []int)
- func (m *TxChunk) GetData() []byte
- func (m *TxChunk) GetLength() uint64
- func (m *TxChunk) GetOffset() uint64
- func (m *TxChunk) GetTxId() string
- func (*TxChunk) ProtoMessage()
- func (m *TxChunk) Reset()
- func (m *TxChunk) String() string
- func (m *TxChunk) XXX_DiscardUnknown()
- func (m *TxChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxChunk) XXX_Merge(src proto.Message)
- func (m *TxChunk) XXX_Size() int
- func (m *TxChunk) XXX_Unmarshal(b []byte) error
- type TxEnd
- func (*TxEnd) Descriptor() ([]byte, []int)
- func (m *TxEnd) GetChecksum() string
- func (m *TxEnd) GetPath() string
- func (m *TxEnd) GetTxId() string
- func (*TxEnd) ProtoMessage()
- func (m *TxEnd) Reset()
- func (m *TxEnd) String() string
- func (m *TxEnd) XXX_DiscardUnknown()
- func (m *TxEnd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxEnd) XXX_Merge(src proto.Message)
- func (m *TxEnd) XXX_Size() int
- func (m *TxEnd) XXX_Unmarshal(b []byte) error
- type TxInfo
- func (*TxInfo) Descriptor() ([]byte, []int)
- func (m *TxInfo) GetTxId() string
- func (*TxInfo) ProtoMessage()
- func (m *TxInfo) Reset()
- func (m *TxInfo) String() string
- func (m *TxInfo) XXX_DiscardUnknown()
- func (m *TxInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxInfo) XXX_Merge(src proto.Message)
- func (m *TxInfo) XXX_Size() int
- func (m *TxInfo) XXX_Unmarshal(b []byte) error
- type TxInfoResponse
- func (*TxInfoResponse) Descriptor() ([]byte, []int)
- func (m *TxInfoResponse) GetStatus() StatusCode
- func (m *TxInfoResponse) GetTxInfo() *TxInfo
- func (*TxInfoResponse) ProtoMessage()
- func (m *TxInfoResponse) Reset()
- func (m *TxInfoResponse) String() string
- func (m *TxInfoResponse) XXX_DiscardUnknown()
- func (m *TxInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxInfoResponse) XXX_Merge(src proto.Message)
- func (m *TxInfoResponse) XXX_Size() int
- func (m *TxInfoResponse) XXX_Unmarshal(b []byte) error
- type UnshareFolderReq
- func (*UnshareFolderReq) Descriptor() ([]byte, []int)
- func (m *UnshareFolderReq) GetId() string
- func (*UnshareFolderReq) ProtoMessage()
- func (m *UnshareFolderReq) Reset()
- func (m *UnshareFolderReq) String() string
- func (m *UnshareFolderReq) XXX_DiscardUnknown()
- func (m *UnshareFolderReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnshareFolderReq) XXX_Merge(src proto.Message)
- func (m *UnshareFolderReq) XXX_Size() int
- func (m *UnshareFolderReq) XXX_Unmarshal(b []byte) error
- type UpdateFolderShareReq
- func (*UpdateFolderShareReq) Descriptor() ([]byte, []int)
- func (m *UpdateFolderShareReq) GetId() string
- func (m *UpdateFolderShareReq) GetReadOnly() bool
- func (m *UpdateFolderShareReq) GetUpdateReadOnly() bool
- func (*UpdateFolderShareReq) ProtoMessage()
- func (m *UpdateFolderShareReq) Reset()
- func (m *UpdateFolderShareReq) String() string
- func (m *UpdateFolderShareReq) XXX_DiscardUnknown()
- func (m *UpdateFolderShareReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateFolderShareReq) XXX_Merge(src proto.Message)
- func (m *UpdateFolderShareReq) XXX_Size() int
- func (m *UpdateFolderShareReq) XXX_Unmarshal(b []byte) error
- type UpdateLinkReq
- func (*UpdateLinkReq) Descriptor() ([]byte, []int)
- func (m *UpdateLinkReq) GetDropOnly() bool
- func (m *UpdateLinkReq) GetExpiration() uint64
- func (m *UpdateLinkReq) GetId() string
- func (m *UpdateLinkReq) GetPassword() string
- func (m *UpdateLinkReq) GetReadOnly() bool
- func (m *UpdateLinkReq) GetUpdateDropOnly() bool
- func (m *UpdateLinkReq) GetUpdateExpiration() bool
- func (m *UpdateLinkReq) GetUpdatePassword() bool
- func (m *UpdateLinkReq) GetUpdateReadOnly() bool
- func (*UpdateLinkReq) ProtoMessage()
- func (m *UpdateLinkReq) Reset()
- func (m *UpdateLinkReq) String() string
- func (m *UpdateLinkReq) XXX_DiscardUnknown()
- func (m *UpdateLinkReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateLinkReq) XXX_Merge(src proto.Message)
- func (m *UpdateLinkReq) XXX_Size() int
- func (m *UpdateLinkReq) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetAccountId() string
- func (m *User) GetDisplayName() string
- func (m *User) GetGroups() []string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserManager
- type UserResponse
- func (*UserResponse) Descriptor() ([]byte, []int)
- func (m *UserResponse) GetStatus() StatusCode
- func (m *UserResponse) GetUser() *User
- func (*UserResponse) ProtoMessage()
- func (m *UserResponse) Reset()
- func (m *UserResponse) String() string
- func (m *UserResponse) XXX_DiscardUnknown()
- func (m *UserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserResponse) XXX_Merge(src proto.Message)
- func (m *UserResponse) XXX_Size() int
- func (m *UserResponse) XXX_Unmarshal(b []byte) error
- type VerifyPublicLinkTokenReq
- func (*VerifyPublicLinkTokenReq) Descriptor() ([]byte, []int)
- func (m *VerifyPublicLinkTokenReq) GetToken() string
- func (*VerifyPublicLinkTokenReq) ProtoMessage()
- func (m *VerifyPublicLinkTokenReq) Reset()
- func (m *VerifyPublicLinkTokenReq) String() string
- func (m *VerifyPublicLinkTokenReq) XXX_DiscardUnknown()
- func (m *VerifyPublicLinkTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VerifyPublicLinkTokenReq) XXX_Merge(src proto.Message)
- func (m *VerifyPublicLinkTokenReq) XXX_Size() int
- func (m *VerifyPublicLinkTokenReq) XXX_Unmarshal(b []byte) error
- type VerifyPublicLinkTokenResponse
- func (*VerifyPublicLinkTokenResponse) Descriptor() ([]byte, []int)
- func (m *VerifyPublicLinkTokenResponse) GetPublicLink() *PublicLink
- func (m *VerifyPublicLinkTokenResponse) GetStatus() StatusCode
- func (*VerifyPublicLinkTokenResponse) ProtoMessage()
- func (m *VerifyPublicLinkTokenResponse) Reset()
- func (m *VerifyPublicLinkTokenResponse) String() string
- func (m *VerifyPublicLinkTokenResponse) XXX_DiscardUnknown()
- func (m *VerifyPublicLinkTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VerifyPublicLinkTokenResponse) XXX_Merge(src proto.Message)
- func (m *VerifyPublicLinkTokenResponse) XXX_Size() int
- func (m *VerifyPublicLinkTokenResponse) XXX_Unmarshal(b []byte) error
- type VirtualStorage
- type WriteSummary
- func (*WriteSummary) Descriptor() ([]byte, []int)
- func (m *WriteSummary) GetNchunks() uint64
- func (m *WriteSummary) GetTotalSize() uint64
- func (*WriteSummary) ProtoMessage()
- func (m *WriteSummary) Reset()
- func (m *WriteSummary) String() string
- func (m *WriteSummary) XXX_DiscardUnknown()
- func (m *WriteSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WriteSummary) XXX_Merge(src proto.Message)
- func (m *WriteSummary) XXX_Size() int
- func (m *WriteSummary) XXX_Unmarshal(b []byte) error
- type WriteSummaryResponse
- func (*WriteSummaryResponse) Descriptor() ([]byte, []int)
- func (m *WriteSummaryResponse) GetStatus() StatusCode
- func (m *WriteSummaryResponse) GetWriteSummary() *WriteSummary
- func (*WriteSummaryResponse) ProtoMessage()
- func (m *WriteSummaryResponse) Reset()
- func (m *WriteSummaryResponse) String() string
- func (m *WriteSummaryResponse) XXX_DiscardUnknown()
- func (m *WriteSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WriteSummaryResponse) XXX_Merge(src proto.Message)
- func (m *WriteSummaryResponse) XXX_Size() int
- func (m *WriteSummaryResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
0: "ACCEPTED",
1: "PENDING",
2: "REJECTED",
}
"ACCEPTED": 0,
"PENDING": 1,
"REJECTED": 2,
}var PublicLink_ItemType_name = map[int32]string{
0: "FILE",
1: "FOLDER",
}
var PublicLink_ItemType_value = map[string]int32{
"FILE": 0,
"FOLDER": 1,
}
0: "USER",
1: "GROUP",
2: "UNIX",
}
"USER": 0,
"GROUP": 1,
"UNIX": 2,
}var StatusCode_name = map[int32]string{
0: "OK",
1: "UNKNOWN",
2: "STORAGE_NOT_FOUND",
3: "STORAGE_ALREADY_EXISTS",
4: "STORAGE_PERMISSIONDENIED",
5: "CONTEXT_USER_REQUIRED",
6: "PATH_INVALID",
7: "PUBLIC_LINK_NOT_FOUND",
8: "PUBLIC_LINK_INVALID_DATE",
9: "PUBLIC_LINK_INVALID_PASSWORD",
10: "STORAGE_NOT_SUPPORTED",
11: "USER_NOT_FOUND",
12: "TOKEN_INVALID",
13: "FOLDER_SHARE_NOT_FOUND",
}
var StatusCode_value = map[string]int32{
"OK": 0,
"UNKNOWN": 1,
"STORAGE_NOT_FOUND": 2,
"STORAGE_ALREADY_EXISTS": 3,
"STORAGE_PERMISSIONDENIED": 4,
"CONTEXT_USER_REQUIRED": 5,
"PATH_INVALID": 6,
"PUBLIC_LINK_NOT_FOUND": 7,
"PUBLIC_LINK_INVALID_DATE": 8,
"PUBLIC_LINK_INVALID_PASSWORD": 9,
"STORAGE_NOT_SUPPORTED": 10,
"USER_NOT_FOUND": 11,
"TOKEN_INVALID": 12,
"FOLDER_SHARE_NOT_FOUND": 13,
}
var Tag_ItemType_name = map[int32]string{
0: "FOLDER",
1: "FILE",
}
var Tag_ItemType_value = map[string]int32{
"FOLDER": 0,
"FILE": 1,
}
Functions ¶
func ContextGetPublicLinkToken ¶ added in v0.0.2
func ContextSetAccessToken ¶
func ContextSetPublicLink ¶ added in v0.0.2
func ContextSetPublicLink(ctx context.Context, pl *PublicLink) context.Context
func ContextSetPublicLinkToken ¶ added in v0.0.2
func DetectMimeType ¶ added in v0.0.2
func IsErrorCode ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
func RegisterPreviewServer ¶
func RegisterPreviewServer(s *grpc.Server, srv PreviewServer)
func RegisterShareServer ¶
func RegisterShareServer(s *grpc.Server, srv ShareServer)
func RegisterStorageServer ¶
func RegisterStorageServer(s *grpc.Server, srv StorageServer)
func RegisterTaggerServer ¶ added in v0.0.2
func RegisterTaggerServer(s *grpc.Server, srv TaggerServer)
Types ¶
type ACLReq ¶
type ACLReq struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Recipient *ShareRecipient `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ACLReq) Descriptor ¶
func (*ACLReq) GetReadOnly ¶
func (*ACLReq) GetRecipient ¶
func (m *ACLReq) GetRecipient() *ShareRecipient
func (*ACLReq) GetShares ¶
func (m *ACLReq) GetShares() []*FolderShare
func (*ACLReq) ProtoMessage ¶
func (*ACLReq) ProtoMessage()
func (*ACLReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *ACLReq) XXX_DiscardUnknown()
func (*ACLReq) XXX_Marshal ¶ added in v0.0.5
func (*ACLReq) XXX_Unmarshal ¶ added in v0.0.5
type AppError ¶
func (AppError) WithMessage ¶
type AuthClient ¶
type AuthClient interface { ForgeUserToken(ctx context.Context, in *ForgeUserTokenReq, opts ...grpc.CallOption) (*TokenResponse, error) DismantleUserToken(ctx context.Context, in *TokenReq, opts ...grpc.CallOption) (*UserResponse, error) ForgePublicLinkToken(ctx context.Context, in *ForgePublicLinkTokenReq, opts ...grpc.CallOption) (*TokenResponse, error) DismantlePublicLinkToken(ctx context.Context, in *TokenReq, opts ...grpc.CallOption) (*PublicLinkResponse, error) }
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc *grpc.ClientConn) AuthClient
type AuthManager ¶
type AuthServer ¶
type AuthServer interface { ForgeUserToken(context.Context, *ForgeUserTokenReq) (*TokenResponse, error) DismantleUserToken(context.Context, *TokenReq) (*UserResponse, error) ForgePublicLinkToken(context.Context, *ForgePublicLinkTokenReq) (*TokenResponse, error) DismantlePublicLinkToken(context.Context, *TokenReq) (*PublicLinkResponse, error) }
AuthServer is the server API for Auth service.
type DataChunk ¶
type DataChunk struct { Length uint64 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DataChunk) Descriptor ¶
func (*DataChunk) ProtoMessage ¶
func (*DataChunk) ProtoMessage()
func (*DataChunk) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *DataChunk) XXX_DiscardUnknown()
func (*DataChunk) XXX_Marshal ¶ added in v0.0.5
func (*DataChunk) XXX_Unmarshal ¶ added in v0.0.5
type DataChunkResponse ¶
type DataChunkResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` DataChunk *DataChunk `protobuf:"bytes,2,opt,name=dataChunk,proto3" json:"dataChunk,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DataChunkResponse) Descriptor ¶
func (*DataChunkResponse) Descriptor() ([]byte, []int)
func (*DataChunkResponse) GetDataChunk ¶
func (m *DataChunkResponse) GetDataChunk() *DataChunk
func (*DataChunkResponse) GetStatus ¶
func (m *DataChunkResponse) GetStatus() StatusCode
func (*DataChunkResponse) ProtoMessage ¶
func (*DataChunkResponse) ProtoMessage()
func (*DataChunkResponse) Reset ¶
func (m *DataChunkResponse) Reset()
func (*DataChunkResponse) String ¶
func (m *DataChunkResponse) String() string
func (*DataChunkResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *DataChunkResponse) XXX_DiscardUnknown()
func (*DataChunkResponse) XXX_Marshal ¶ added in v0.0.5
func (m *DataChunkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DataChunkResponse) XXX_Merge ¶ added in v0.0.5
func (m *DataChunkResponse) XXX_Merge(src proto.Message)
func (*DataChunkResponse) XXX_Size ¶ added in v0.0.5
func (m *DataChunkResponse) XXX_Size() int
func (*DataChunkResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *DataChunkResponse) XXX_Unmarshal(b []byte) error
type EmptyReq ¶
type EmptyReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EmptyReq) Descriptor ¶
func (*EmptyReq) ProtoMessage ¶
func (*EmptyReq) ProtoMessage()
func (*EmptyReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *EmptyReq) XXX_DiscardUnknown()
func (*EmptyReq) XXX_Marshal ¶ added in v0.0.5
func (*EmptyReq) XXX_Unmarshal ¶ added in v0.0.5
type EmptyResponse ¶
type EmptyResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EmptyResponse) Descriptor ¶
func (*EmptyResponse) Descriptor() ([]byte, []int)
func (*EmptyResponse) GetStatus ¶
func (m *EmptyResponse) GetStatus() StatusCode
func (*EmptyResponse) ProtoMessage ¶
func (*EmptyResponse) ProtoMessage()
func (*EmptyResponse) Reset ¶
func (m *EmptyResponse) Reset()
func (*EmptyResponse) String ¶
func (m *EmptyResponse) String() string
func (*EmptyResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *EmptyResponse) XXX_DiscardUnknown()
func (*EmptyResponse) XXX_Marshal ¶ added in v0.0.5
func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EmptyResponse) XXX_Merge ¶ added in v0.0.5
func (m *EmptyResponse) XXX_Merge(src proto.Message)
func (*EmptyResponse) XXX_Size ¶ added in v0.0.5
func (m *EmptyResponse) XXX_Size() int
func (*EmptyResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *EmptyResponse) XXX_Unmarshal(b []byte) error
type ErrorCode ¶
type ErrorCode string
const ( // StorageNotFoundErrorCode is used when a resource is not found. StorageNotFoundErrorCode ErrorCode = "STORAGE_ERROR_NOT_FOUND" // StorageAlreadyExistsErrorCode is used when a resource already exists. StorageAlreadyExistsErrorCode ErrorCode = "STORAGE_ERROR_ALREADY_EXISTS" // StoragePermissionDeniedErrorCode is used when it is not possible to acces the resource. StoragePermissionDeniedErrorCode ErrorCode = "STORAGE_ERROR_PERMISSION_DENIED" // ContextUserRequired requires an pkg.User object in the context ContextUserRequiredError ErrorCode = "CONTEXT_USER_REQUIRED" // PathInvalidError is used when a path is invalid, like not begging with / PathInvalidError ErrorCode = "PATH_INVALID_ERROR" // PublicLinkNotFoundErrorCode is used when a resource is not found. PublicLinkNotFoundErrorCode ErrorCode = "PUBLIC_LINK_NOT_FOUND" PublicLinkInvalidExpireDateErrorCode ErrorCode = "PUBLIC_LINK_INVALID_EXPIRE_DATE" PublicLinkInvalidPasswordErrorCode ErrorCode = "PUBLIC_LINK_INVALID_PASSWORD" FolderShareNotFoundErrorCode ErrorCode = "FOLDER_SHARE_NOT_FOUND" // StorageOperationNotSupported is used when some operation is not available on // the storage, like emptying the recycle bin StorageNotSupportedErrorCode ErrorCode = "STORAGE_NOT_SUPPORTED" UserNotFoundErrorCode ErrorCode = "USER_NOT_FOUND" TokenInvalidErrorCode ErrorCode = "TOKEN_INVALID" // ProjectNotFoundErrorCode is used when a resource is not found. ProjectNotFoundErrorCode ErrorCode = "PROJECT_NOT_FOUND" UnknownError ErrorCode = "UNKNOWN" )
type FolderShare ¶
type FolderShare struct {}
func (*FolderShare) Descriptor ¶
func (*FolderShare) Descriptor() ([]byte, []int)
func (*FolderShare) GetCtime ¶
func (m *FolderShare) GetCtime() uint64
func (*FolderShare) GetId ¶
func (m *FolderShare) GetId() string
func (*FolderShare) GetMtime ¶
func (m *FolderShare) GetMtime() uint64
func (*FolderShare) GetOwnerId ¶
func (m *FolderShare) GetOwnerId() string
func (*FolderShare) GetPath ¶
func (m *FolderShare) GetPath() string
func (*FolderShare) GetReadOnly ¶
func (m *FolderShare) GetReadOnly() bool
func (*FolderShare) GetRecipient ¶
func (m *FolderShare) GetRecipient() *ShareRecipient
func (*FolderShare) GetState ¶ added in v0.0.5
func (m *FolderShare) GetState() FolderShare_State
func (*FolderShare) GetTarget ¶
func (m *FolderShare) GetTarget() string
func (*FolderShare) ProtoMessage ¶
func (*FolderShare) ProtoMessage()
func (*FolderShare) Reset ¶
func (m *FolderShare) Reset()
func (*FolderShare) String ¶
func (m *FolderShare) String() string
func (*FolderShare) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *FolderShare) XXX_DiscardUnknown()
func (*FolderShare) XXX_Marshal ¶ added in v0.0.5
func (m *FolderShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FolderShare) XXX_Merge ¶ added in v0.0.5
func (m *FolderShare) XXX_Merge(src proto.Message)
func (*FolderShare) XXX_Size ¶ added in v0.0.5
func (m *FolderShare) XXX_Size() int
func (*FolderShare) XXX_Unmarshal ¶ added in v0.0.5
func (m *FolderShare) XXX_Unmarshal(b []byte) error
type FolderShareResponse ¶
type FolderShareResponse struct {}
func (*FolderShareResponse) Descriptor ¶
func (*FolderShareResponse) Descriptor() ([]byte, []int)
func (*FolderShareResponse) GetFolderShare ¶
func (m *FolderShareResponse) GetFolderShare() *FolderShare
func (*FolderShareResponse) GetStatus ¶
func (m *FolderShareResponse) GetStatus() StatusCode
func (*FolderShareResponse) ProtoMessage ¶
func (*FolderShareResponse) ProtoMessage()
func (*FolderShareResponse) Reset ¶
func (m *FolderShareResponse) Reset()
func (*FolderShareResponse) String ¶
func (m *FolderShareResponse) String() string
func (*FolderShareResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *FolderShareResponse) XXX_DiscardUnknown()
func (*FolderShareResponse) XXX_Marshal ¶ added in v0.0.5
func (m *FolderShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FolderShareResponse) XXX_Merge ¶ added in v0.0.5
func (m *FolderShareResponse) XXX_Merge(src proto.Message)
func (*FolderShareResponse) XXX_Size ¶ added in v0.0.5
func (m *FolderShareResponse) XXX_Size() int
func (*FolderShareResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *FolderShareResponse) XXX_Unmarshal(b []byte) error
type FolderShare_State ¶ added in v0.0.5
type FolderShare_State int32
const ()
func (FolderShare_State) EnumDescriptor ¶ added in v0.0.5
func (FolderShare_State) EnumDescriptor() ([]byte, []int)
func (FolderShare_State) String ¶ added in v0.0.5
func (x FolderShare_State) String() string
type ForgePublicLinkTokenReq ¶ added in v0.0.2
type ForgePublicLinkTokenReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ForgePublicLinkTokenReq) Descriptor ¶ added in v0.0.2
func (*ForgePublicLinkTokenReq) Descriptor() ([]byte, []int)
func (*ForgePublicLinkTokenReq) GetPassword ¶ added in v0.0.2
func (m *ForgePublicLinkTokenReq) GetPassword() string
func (*ForgePublicLinkTokenReq) GetToken ¶ added in v0.0.2
func (m *ForgePublicLinkTokenReq) GetToken() string
func (*ForgePublicLinkTokenReq) ProtoMessage ¶ added in v0.0.2
func (*ForgePublicLinkTokenReq) ProtoMessage()
func (*ForgePublicLinkTokenReq) Reset ¶ added in v0.0.2
func (m *ForgePublicLinkTokenReq) Reset()
func (*ForgePublicLinkTokenReq) String ¶ added in v0.0.2
func (m *ForgePublicLinkTokenReq) String() string
func (*ForgePublicLinkTokenReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *ForgePublicLinkTokenReq) XXX_DiscardUnknown()
func (*ForgePublicLinkTokenReq) XXX_Marshal ¶ added in v0.0.5
func (m *ForgePublicLinkTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ForgePublicLinkTokenReq) XXX_Merge ¶ added in v0.0.5
func (m *ForgePublicLinkTokenReq) XXX_Merge(src proto.Message)
func (*ForgePublicLinkTokenReq) XXX_Size ¶ added in v0.0.5
func (m *ForgePublicLinkTokenReq) XXX_Size() int
func (*ForgePublicLinkTokenReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *ForgePublicLinkTokenReq) XXX_Unmarshal(b []byte) error
type ForgePublicLinkTokenResponse ¶ added in v0.0.2
type ForgePublicLinkTokenResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` Valid bool `protobuf:"varint,2,opt,name=valid,proto3" json:"valid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ForgePublicLinkTokenResponse) Descriptor ¶ added in v0.0.2
func (*ForgePublicLinkTokenResponse) Descriptor() ([]byte, []int)
func (*ForgePublicLinkTokenResponse) GetStatus ¶ added in v0.0.2
func (m *ForgePublicLinkTokenResponse) GetStatus() StatusCode
func (*ForgePublicLinkTokenResponse) GetValid ¶ added in v0.0.2
func (m *ForgePublicLinkTokenResponse) GetValid() bool
func (*ForgePublicLinkTokenResponse) ProtoMessage ¶ added in v0.0.2
func (*ForgePublicLinkTokenResponse) ProtoMessage()
func (*ForgePublicLinkTokenResponse) Reset ¶ added in v0.0.2
func (m *ForgePublicLinkTokenResponse) Reset()
func (*ForgePublicLinkTokenResponse) String ¶ added in v0.0.2
func (m *ForgePublicLinkTokenResponse) String() string
func (*ForgePublicLinkTokenResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *ForgePublicLinkTokenResponse) XXX_DiscardUnknown()
func (*ForgePublicLinkTokenResponse) XXX_Marshal ¶ added in v0.0.5
func (m *ForgePublicLinkTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ForgePublicLinkTokenResponse) XXX_Merge ¶ added in v0.0.5
func (m *ForgePublicLinkTokenResponse) XXX_Merge(src proto.Message)
func (*ForgePublicLinkTokenResponse) XXX_Size ¶ added in v0.0.5
func (m *ForgePublicLinkTokenResponse) XXX_Size() int
func (*ForgePublicLinkTokenResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *ForgePublicLinkTokenResponse) XXX_Unmarshal(b []byte) error
type ForgeUserTokenReq ¶ added in v0.0.2
type ForgeUserTokenReq struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ForgeUserTokenReq) Descriptor ¶ added in v0.0.2
func (*ForgeUserTokenReq) Descriptor() ([]byte, []int)
func (*ForgeUserTokenReq) GetClientId ¶ added in v0.0.2
func (m *ForgeUserTokenReq) GetClientId() string
func (*ForgeUserTokenReq) GetClientSecret ¶ added in v0.0.2
func (m *ForgeUserTokenReq) GetClientSecret() string
func (*ForgeUserTokenReq) ProtoMessage ¶ added in v0.0.2
func (*ForgeUserTokenReq) ProtoMessage()
func (*ForgeUserTokenReq) Reset ¶ added in v0.0.2
func (m *ForgeUserTokenReq) Reset()
func (*ForgeUserTokenReq) String ¶ added in v0.0.2
func (m *ForgeUserTokenReq) String() string
func (*ForgeUserTokenReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *ForgeUserTokenReq) XXX_DiscardUnknown()
func (*ForgeUserTokenReq) XXX_Marshal ¶ added in v0.0.5
func (m *ForgeUserTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ForgeUserTokenReq) XXX_Merge ¶ added in v0.0.5
func (m *ForgeUserTokenReq) XXX_Merge(src proto.Message)
func (*ForgeUserTokenReq) XXX_Size ¶ added in v0.0.5
func (m *ForgeUserTokenReq) XXX_Size() int
func (*ForgeUserTokenReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *ForgeUserTokenReq) XXX_Unmarshal(b []byte) error
type IsPublicLinkProtectedResponse ¶ added in v0.0.2
type IsPublicLinkProtectedResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` Protected bool `protobuf:"varint,2,opt,name=protected,proto3" json:"protected,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IsPublicLinkProtectedResponse) Descriptor ¶ added in v0.0.2
func (*IsPublicLinkProtectedResponse) Descriptor() ([]byte, []int)
func (*IsPublicLinkProtectedResponse) GetProtected ¶ added in v0.0.2
func (m *IsPublicLinkProtectedResponse) GetProtected() bool
func (*IsPublicLinkProtectedResponse) GetStatus ¶ added in v0.0.2
func (m *IsPublicLinkProtectedResponse) GetStatus() StatusCode
func (*IsPublicLinkProtectedResponse) ProtoMessage ¶ added in v0.0.2
func (*IsPublicLinkProtectedResponse) ProtoMessage()
func (*IsPublicLinkProtectedResponse) Reset ¶ added in v0.0.2
func (m *IsPublicLinkProtectedResponse) Reset()
func (*IsPublicLinkProtectedResponse) String ¶ added in v0.0.2
func (m *IsPublicLinkProtectedResponse) String() string
func (*IsPublicLinkProtectedResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *IsPublicLinkProtectedResponse) XXX_DiscardUnknown()
func (*IsPublicLinkProtectedResponse) XXX_Marshal ¶ added in v0.0.5
func (m *IsPublicLinkProtectedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IsPublicLinkProtectedResponse) XXX_Merge ¶ added in v0.0.5
func (m *IsPublicLinkProtectedResponse) XXX_Merge(src proto.Message)
func (*IsPublicLinkProtectedResponse) XXX_Size ¶ added in v0.0.5
func (m *IsPublicLinkProtectedResponse) XXX_Size() int
func (*IsPublicLinkProtectedResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *IsPublicLinkProtectedResponse) XXX_Unmarshal(b []byte) error
type LinkPermissions ¶
type LinkPermissions struct { Read bool `protobuf:"varint,1,opt,name=read,proto3" json:"read,omitempty"` Write bool `protobuf:"varint,2,opt,name=write,proto3" json:"write,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LinkPermissions) Descriptor ¶
func (*LinkPermissions) Descriptor() ([]byte, []int)
func (*LinkPermissions) GetRead ¶
func (m *LinkPermissions) GetRead() bool
func (*LinkPermissions) GetWrite ¶
func (m *LinkPermissions) GetWrite() bool
func (*LinkPermissions) ProtoMessage ¶
func (*LinkPermissions) ProtoMessage()
func (*LinkPermissions) Reset ¶
func (m *LinkPermissions) Reset()
func (*LinkPermissions) String ¶
func (m *LinkPermissions) String() string
func (*LinkPermissions) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *LinkPermissions) XXX_DiscardUnknown()
func (*LinkPermissions) XXX_Marshal ¶ added in v0.0.5
func (m *LinkPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LinkPermissions) XXX_Merge ¶ added in v0.0.5
func (m *LinkPermissions) XXX_Merge(src proto.Message)
func (*LinkPermissions) XXX_Size ¶ added in v0.0.5
func (m *LinkPermissions) XXX_Size() int
func (*LinkPermissions) XXX_Unmarshal ¶ added in v0.0.5
func (m *LinkPermissions) XXX_Unmarshal(b []byte) error
type ListFolderSharesReq ¶
type ListFolderSharesReq struct {}
func (*ListFolderSharesReq) Descriptor ¶
func (*ListFolderSharesReq) Descriptor() ([]byte, []int)
func (*ListFolderSharesReq) GetPath ¶
func (m *ListFolderSharesReq) GetPath() string
func (*ListFolderSharesReq) ProtoMessage ¶
func (*ListFolderSharesReq) ProtoMessage()
func (*ListFolderSharesReq) Reset ¶
func (m *ListFolderSharesReq) Reset()
func (*ListFolderSharesReq) String ¶
func (m *ListFolderSharesReq) String() string
func (*ListFolderSharesReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *ListFolderSharesReq) XXX_DiscardUnknown()
func (*ListFolderSharesReq) XXX_Marshal ¶ added in v0.0.5
func (m *ListFolderSharesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListFolderSharesReq) XXX_Merge ¶ added in v0.0.5
func (m *ListFolderSharesReq) XXX_Merge(src proto.Message)
func (*ListFolderSharesReq) XXX_Size ¶ added in v0.0.5
func (m *ListFolderSharesReq) XXX_Size() int
func (*ListFolderSharesReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *ListFolderSharesReq) XXX_Unmarshal(b []byte) error
type ListPublicLinksReq ¶ added in v0.0.5
type ListPublicLinksReq struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListPublicLinksReq) Descriptor ¶ added in v0.0.5
func (*ListPublicLinksReq) Descriptor() ([]byte, []int)
func (*ListPublicLinksReq) GetPath ¶ added in v0.0.5
func (m *ListPublicLinksReq) GetPath() string
func (*ListPublicLinksReq) ProtoMessage ¶ added in v0.0.5
func (*ListPublicLinksReq) ProtoMessage()
func (*ListPublicLinksReq) Reset ¶ added in v0.0.5
func (m *ListPublicLinksReq) Reset()
func (*ListPublicLinksReq) String ¶ added in v0.0.5
func (m *ListPublicLinksReq) String() string
func (*ListPublicLinksReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *ListPublicLinksReq) XXX_DiscardUnknown()
func (*ListPublicLinksReq) XXX_Marshal ¶ added in v0.0.5
func (m *ListPublicLinksReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListPublicLinksReq) XXX_Merge ¶ added in v0.0.5
func (m *ListPublicLinksReq) XXX_Merge(src proto.Message)
func (*ListPublicLinksReq) XXX_Size ¶ added in v0.0.5
func (m *ListPublicLinksReq) XXX_Size() int
func (*ListPublicLinksReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *ListPublicLinksReq) XXX_Unmarshal(b []byte) error
type Metadata ¶
type Metadata 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"` Size uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` Mtime uint64 `protobuf:"varint,4,opt,name=mtime,proto3" json:"mtime,omitempty"` IsDir bool `protobuf:"varint,5,opt,name=is_dir,json=isDir,proto3" json:"is_dir,omitempty"` Etag string `protobuf:"bytes,6,opt,name=etag,proto3" json:"etag,omitempty"` Checksum string `protobuf:"bytes,7,opt,name=checksum,proto3" json:"checksum,omitempty"` DerefPath string `protobuf:"bytes,8,opt,name=deref_path,json=derefPath,proto3" json:"deref_path,omitempty"` IsReadOnly bool `protobuf:"varint,9,opt,name=is_read_only,json=isReadOnly,proto3" json:"is_read_only,omitempty"` Mime string `protobuf:"bytes,11,opt,name=mime,proto3" json:"mime,omitempty"` Sys []byte `protobuf:"bytes,12,opt,name=sys,proto3" json:"sys,omitempty"` TreeCount uint64 `protobuf:"varint,13,opt,name=tree_count,json=treeCount,proto3" json:"tree_count,omitempty"` // EOS filesytem extended metadata records EosFile string `protobuf:"bytes,14,opt,name=eos_file,json=eosFile,proto3" json:"eos_file,omitempty"` EosInstance string `protobuf:"bytes,15,opt,name=eos_instance,json=eosInstance,proto3" json:"eos_instance,omitempty"` ShareTarget string `protobuf:"bytes,16,opt,name=share_target,json=shareTarget,proto3" json:"share_target,omitempty"` // Migration extended metadata records MigId string `protobuf:"bytes,17,opt,name=mig_id,json=migId,proto3" json:"mig_id,omitempty"` MigPath string `protobuf:"bytes,18,opt,name=mig_path,json=migPath,proto3" json:"mig_path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Metadata) Descriptor ¶
func (*Metadata) GetChecksum ¶
func (*Metadata) GetDerefPath ¶
func (*Metadata) GetEosFile ¶
func (*Metadata) GetEosInstance ¶
func (*Metadata) GetIsReadOnly ¶
func (*Metadata) GetIsShareable ¶ added in v0.0.2
func (*Metadata) GetMigPath ¶
func (*Metadata) GetShareTarget ¶
func (*Metadata) GetTreeCount ¶ added in v0.0.5
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *Metadata) XXX_DiscardUnknown()
func (*Metadata) XXX_Marshal ¶ added in v0.0.5
func (*Metadata) XXX_Unmarshal ¶ added in v0.0.5
type MetadataResponse ¶
type MetadataResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MetadataResponse) Descriptor ¶
func (*MetadataResponse) Descriptor() ([]byte, []int)
func (*MetadataResponse) GetMetadata ¶
func (m *MetadataResponse) GetMetadata() *Metadata
func (*MetadataResponse) GetStatus ¶
func (m *MetadataResponse) GetStatus() StatusCode
func (*MetadataResponse) ProtoMessage ¶
func (*MetadataResponse) ProtoMessage()
func (*MetadataResponse) Reset ¶
func (m *MetadataResponse) Reset()
func (*MetadataResponse) String ¶
func (m *MetadataResponse) String() string
func (*MetadataResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *MetadataResponse) XXX_DiscardUnknown()
func (*MetadataResponse) XXX_Marshal ¶ added in v0.0.5
func (m *MetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MetadataResponse) XXX_Merge ¶ added in v0.0.5
func (m *MetadataResponse) XXX_Merge(src proto.Message)
func (*MetadataResponse) XXX_Size ¶ added in v0.0.5
func (m *MetadataResponse) XXX_Size() int
func (*MetadataResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *MetadataResponse) XXX_Unmarshal(b []byte) error
type Mount ¶
type Mount interface { Storage GetMountPoint() string GetMountPointId() string GetMountOptions() *MountOptions GetStorage() Storage }
Mount contains the information about a mount. Similar to "struct mntent" in /usr/include/mntent.h. See also getent(8). A Mount exposes two mount points, one path based and another namespace based. A path-based mount point can be '/home', a namespaced mount-point can be 'home:1234'
type MountOptions ¶
type MountTable ¶
type MountTable struct {
Mounts []*MountTableEntry `json:"mounts"`
}
type MountTableEntry ¶
type MountTableEntry struct { MountPoint string `json:"mount_point"` MountID string `json:"mount_id"` MountOptions *MountOptions `json:"mount_options"` StorageDriver string `json:"storage_driver"` StorageOptions interface{} `json:"storage_options"` StorageWrappers []*StorageWrapper `json:"storage_wrappers"` }
type MoveReq ¶
type MoveReq struct { OldPath string `protobuf:"bytes,1,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"` NewPath string `protobuf:"bytes,2,opt,name=new_path,json=newPath,proto3" json:"new_path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MoveReq) Descriptor ¶
func (*MoveReq) GetNewPath ¶
func (*MoveReq) GetOldPath ¶
func (*MoveReq) ProtoMessage ¶
func (*MoveReq) ProtoMessage()
func (*MoveReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *MoveReq) XXX_DiscardUnknown()
func (*MoveReq) XXX_Marshal ¶ added in v0.0.5
func (*MoveReq) XXX_Unmarshal ¶ added in v0.0.5
type NewFolderShareReq ¶
type NewFolderShareReq struct {}
func (*NewFolderShareReq) Descriptor ¶
func (*NewFolderShareReq) Descriptor() ([]byte, []int)
func (*NewFolderShareReq) GetPath ¶
func (m *NewFolderShareReq) GetPath() string
func (*NewFolderShareReq) GetReadOnly ¶
func (m *NewFolderShareReq) GetReadOnly() bool
func (*NewFolderShareReq) GetRecipient ¶
func (m *NewFolderShareReq) GetRecipient() *ShareRecipient
func (*NewFolderShareReq) ProtoMessage ¶
func (*NewFolderShareReq) ProtoMessage()
func (*NewFolderShareReq) Reset ¶
func (m *NewFolderShareReq) Reset()
func (*NewFolderShareReq) String ¶
func (m *NewFolderShareReq) String() string
func (*NewFolderShareReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *NewFolderShareReq) XXX_DiscardUnknown()
func (*NewFolderShareReq) XXX_Marshal ¶ added in v0.0.5
func (m *NewFolderShareReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NewFolderShareReq) XXX_Merge ¶ added in v0.0.5
func (m *NewFolderShareReq) XXX_Merge(src proto.Message)
func (*NewFolderShareReq) XXX_Size ¶ added in v0.0.5
func (m *NewFolderShareReq) XXX_Size() int
func (*NewFolderShareReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *NewFolderShareReq) XXX_Unmarshal(b []byte) error
type NewLinkReq ¶
type NewLinkReq struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` ReadOnly bool `protobuf:"varint,2,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Expires uint64 `protobuf:"varint,4,opt,name=expires,proto3" json:"expires,omitempty"` DropOnly bool `protobuf:"varint,5,opt,name=drop_only,json=dropOnly,proto3" json:"drop_only,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NewLinkReq) Descriptor ¶
func (*NewLinkReq) Descriptor() ([]byte, []int)
func (*NewLinkReq) GetDropOnly ¶ added in v0.0.5
func (m *NewLinkReq) GetDropOnly() bool
func (*NewLinkReq) GetExpires ¶
func (m *NewLinkReq) GetExpires() uint64
func (*NewLinkReq) GetPassword ¶
func (m *NewLinkReq) GetPassword() string
func (*NewLinkReq) GetPath ¶
func (m *NewLinkReq) GetPath() string
func (*NewLinkReq) GetReadOnly ¶
func (m *NewLinkReq) GetReadOnly() bool
func (*NewLinkReq) ProtoMessage ¶
func (*NewLinkReq) ProtoMessage()
func (*NewLinkReq) Reset ¶
func (m *NewLinkReq) Reset()
func (*NewLinkReq) String ¶
func (m *NewLinkReq) String() string
func (*NewLinkReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *NewLinkReq) XXX_DiscardUnknown()
func (*NewLinkReq) XXX_Marshal ¶ added in v0.0.5
func (m *NewLinkReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NewLinkReq) XXX_Merge ¶ added in v0.0.5
func (m *NewLinkReq) XXX_Merge(src proto.Message)
func (*NewLinkReq) XXX_Size ¶ added in v0.0.5
func (m *NewLinkReq) XXX_Size() int
func (*NewLinkReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *NewLinkReq) XXX_Unmarshal(b []byte) error
type PathReq ¶
type PathReq struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PathReq) Descriptor ¶
func (*PathReq) ProtoMessage ¶
func (*PathReq) ProtoMessage()
func (*PathReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *PathReq) XXX_DiscardUnknown()
func (*PathReq) XXX_Marshal ¶ added in v0.0.5
func (*PathReq) XXX_Unmarshal ¶ added in v0.0.5
type PreviewClient ¶
type PreviewClient interface {
ReadPreview(ctx context.Context, in *PathReq, opts ...grpc.CallOption) (Preview_ReadPreviewClient, error)
}
PreviewClient is the client API for Preview service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPreviewClient ¶
func NewPreviewClient(cc *grpc.ClientConn) PreviewClient
type PreviewServer ¶
type PreviewServer interface {
ReadPreview(*PathReq, Preview_ReadPreviewServer) error
}
PreviewServer is the server API for Preview service.
type Preview_ReadPreviewClient ¶
type Preview_ReadPreviewClient interface { Recv() (*DataChunkResponse, error) grpc.ClientStream }
type Preview_ReadPreviewServer ¶
type Preview_ReadPreviewServer interface { Send(*DataChunkResponse) error grpc.ServerStream }
type ProjectManager ¶ added in v0.0.2
type PublicLink ¶
type PublicLink struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` Protected bool `protobuf:"varint,4,opt,name=protected,proto3" json:"protected,omitempty"` Expires uint64 `protobuf:"varint,5,opt,name=expires,proto3" json:"expires,omitempty"` ReadOnly bool `protobuf:"varint,6,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` Mtime uint64 `protobuf:"varint,7,opt,name=mtime,proto3" json:"mtime,omitempty"` ItemType PublicLink_ItemType `protobuf:"varint,8,opt,name=item_type,json=itemType,proto3,enum=api.PublicLink_ItemType" json:"item_type,omitempty"` OwnerId string `protobuf:"bytes,9,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"` DropOnly bool `protobuf:"varint,11,opt,name=drop_only,json=dropOnly,proto3" json:"drop_only,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func ContextGetPublicLink ¶ added in v0.0.2
func ContextGetPublicLink(ctx context.Context) (*PublicLink, bool)
func (*PublicLink) Descriptor ¶
func (*PublicLink) Descriptor() ([]byte, []int)
func (*PublicLink) GetDropOnly ¶ added in v0.0.5
func (m *PublicLink) GetDropOnly() bool
func (*PublicLink) GetExpires ¶
func (m *PublicLink) GetExpires() uint64
func (*PublicLink) GetId ¶
func (m *PublicLink) GetId() string
func (*PublicLink) GetItemType ¶
func (m *PublicLink) GetItemType() PublicLink_ItemType
func (*PublicLink) GetMtime ¶
func (m *PublicLink) GetMtime() uint64
func (*PublicLink) GetName ¶ added in v0.0.2
func (m *PublicLink) GetName() string
func (*PublicLink) GetOwnerId ¶ added in v0.0.2
func (m *PublicLink) GetOwnerId() string
func (*PublicLink) GetPath ¶
func (m *PublicLink) GetPath() string
func (*PublicLink) GetProtected ¶
func (m *PublicLink) GetProtected() bool
func (*PublicLink) GetReadOnly ¶
func (m *PublicLink) GetReadOnly() bool
func (*PublicLink) GetToken ¶
func (m *PublicLink) GetToken() string
func (*PublicLink) ProtoMessage ¶
func (*PublicLink) ProtoMessage()
func (*PublicLink) Reset ¶
func (m *PublicLink) Reset()
func (*PublicLink) String ¶
func (m *PublicLink) String() string
func (*PublicLink) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *PublicLink) XXX_DiscardUnknown()
func (*PublicLink) XXX_Marshal ¶ added in v0.0.5
func (m *PublicLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublicLink) XXX_Merge ¶ added in v0.0.5
func (m *PublicLink) XXX_Merge(src proto.Message)
func (*PublicLink) XXX_Size ¶ added in v0.0.5
func (m *PublicLink) XXX_Size() int
func (*PublicLink) XXX_Unmarshal ¶ added in v0.0.5
func (m *PublicLink) XXX_Unmarshal(b []byte) error
type PublicLinkManager ¶
type PublicLinkManager interface { CreatePublicLink(ctx context.Context, path string, opt *PublicLinkOptions) (*PublicLink, error) UpdatePublicLink(ctx context.Context, id string, opt *PublicLinkOptions) (*PublicLink, error) InspectPublicLink(ctx context.Context, id string) (*PublicLink, error) InspectPublicLinkByToken(ctx context.Context, token string) (*PublicLink, error) ListPublicLinks(ctx context.Context, filterByPath string) ([]*PublicLink, error) RevokePublicLink(ctx context.Context, token string) error AuthenticatePublicLink(ctx context.Context, token, password string) (*PublicLink, error) IsPublicLinkProtected(ctx context.Context, token string) (bool, error) }
type PublicLinkOptions ¶
type PublicLinkResponse ¶
type PublicLinkResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` PublicLink *PublicLink `protobuf:"bytes,2,opt,name=publicLink,proto3" json:"publicLink,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PublicLinkResponse) Descriptor ¶
func (*PublicLinkResponse) Descriptor() ([]byte, []int)
func (*PublicLinkResponse) GetPublicLink ¶
func (m *PublicLinkResponse) GetPublicLink() *PublicLink
func (*PublicLinkResponse) GetStatus ¶
func (m *PublicLinkResponse) GetStatus() StatusCode
func (*PublicLinkResponse) ProtoMessage ¶
func (*PublicLinkResponse) ProtoMessage()
func (*PublicLinkResponse) Reset ¶
func (m *PublicLinkResponse) Reset()
func (*PublicLinkResponse) String ¶
func (m *PublicLinkResponse) String() string
func (*PublicLinkResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *PublicLinkResponse) XXX_DiscardUnknown()
func (*PublicLinkResponse) XXX_Marshal ¶ added in v0.0.5
func (m *PublicLinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublicLinkResponse) XXX_Merge ¶ added in v0.0.5
func (m *PublicLinkResponse) XXX_Merge(src proto.Message)
func (*PublicLinkResponse) XXX_Size ¶ added in v0.0.5
func (m *PublicLinkResponse) XXX_Size() int
func (*PublicLinkResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *PublicLinkResponse) XXX_Unmarshal(b []byte) error
type PublicLinkTokenReq ¶ added in v0.0.2
type PublicLinkTokenReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PublicLinkTokenReq) Descriptor ¶ added in v0.0.2
func (*PublicLinkTokenReq) Descriptor() ([]byte, []int)
func (*PublicLinkTokenReq) GetToken ¶ added in v0.0.2
func (m *PublicLinkTokenReq) GetToken() string
func (*PublicLinkTokenReq) ProtoMessage ¶ added in v0.0.2
func (*PublicLinkTokenReq) ProtoMessage()
func (*PublicLinkTokenReq) Reset ¶ added in v0.0.2
func (m *PublicLinkTokenReq) Reset()
func (*PublicLinkTokenReq) String ¶ added in v0.0.2
func (m *PublicLinkTokenReq) String() string
func (*PublicLinkTokenReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *PublicLinkTokenReq) XXX_DiscardUnknown()
func (*PublicLinkTokenReq) XXX_Marshal ¶ added in v0.0.5
func (m *PublicLinkTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublicLinkTokenReq) XXX_Merge ¶ added in v0.0.5
func (m *PublicLinkTokenReq) XXX_Merge(src proto.Message)
func (*PublicLinkTokenReq) XXX_Size ¶ added in v0.0.5
func (m *PublicLinkTokenReq) XXX_Size() int
func (*PublicLinkTokenReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *PublicLinkTokenReq) XXX_Unmarshal(b []byte) error
type PublicLink_ItemType ¶
type PublicLink_ItemType int32
const ( PublicLink_FILE PublicLink_ItemType = 0 PublicLink_FOLDER PublicLink_ItemType = 1 )
func (PublicLink_ItemType) EnumDescriptor ¶
func (PublicLink_ItemType) EnumDescriptor() ([]byte, []int)
func (PublicLink_ItemType) String ¶
func (x PublicLink_ItemType) String() string
type QuotaReq ¶ added in v0.0.2
type QuotaReq struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QuotaReq) Descriptor ¶ added in v0.0.2
func (*QuotaReq) ProtoMessage ¶ added in v0.0.2
func (*QuotaReq) ProtoMessage()
func (*QuotaReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *QuotaReq) XXX_DiscardUnknown()
func (*QuotaReq) XXX_Marshal ¶ added in v0.0.5
func (*QuotaReq) XXX_Unmarshal ¶ added in v0.0.5
type QuotaResponse ¶ added in v0.0.2
type QuotaResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` TotalBytes int64 `protobuf:"varint,2,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"` UsedBytes int64 `protobuf:"varint,3,opt,name=used_bytes,json=usedBytes,proto3" json:"used_bytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QuotaResponse) Descriptor ¶ added in v0.0.2
func (*QuotaResponse) Descriptor() ([]byte, []int)
func (*QuotaResponse) GetStatus ¶ added in v0.0.2
func (m *QuotaResponse) GetStatus() StatusCode
func (*QuotaResponse) GetTotalBytes ¶ added in v0.0.2
func (m *QuotaResponse) GetTotalBytes() int64
func (*QuotaResponse) GetUsedBytes ¶ added in v0.0.2
func (m *QuotaResponse) GetUsedBytes() int64
func (*QuotaResponse) ProtoMessage ¶ added in v0.0.2
func (*QuotaResponse) ProtoMessage()
func (*QuotaResponse) Reset ¶ added in v0.0.2
func (m *QuotaResponse) Reset()
func (*QuotaResponse) String ¶ added in v0.0.2
func (m *QuotaResponse) String() string
func (*QuotaResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *QuotaResponse) XXX_DiscardUnknown()
func (*QuotaResponse) XXX_Marshal ¶ added in v0.0.5
func (m *QuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuotaResponse) XXX_Merge ¶ added in v0.0.5
func (m *QuotaResponse) XXX_Merge(src proto.Message)
func (*QuotaResponse) XXX_Size ¶ added in v0.0.5
func (m *QuotaResponse) XXX_Size() int
func (*QuotaResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *QuotaResponse) XXX_Unmarshal(b []byte) error
type ReceivedShareReq ¶
type ReceivedShareReq struct {}
func (*ReceivedShareReq) Descriptor ¶
func (*ReceivedShareReq) Descriptor() ([]byte, []int)
func (*ReceivedShareReq) GetShareId ¶
func (m *ReceivedShareReq) GetShareId() string
func (*ReceivedShareReq) ProtoMessage ¶
func (*ReceivedShareReq) ProtoMessage()
func (*ReceivedShareReq) Reset ¶
func (m *ReceivedShareReq) Reset()
func (*ReceivedShareReq) String ¶
func (m *ReceivedShareReq) String() string
func (*ReceivedShareReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *ReceivedShareReq) XXX_DiscardUnknown()
func (*ReceivedShareReq) XXX_Marshal ¶ added in v0.0.5
func (m *ReceivedShareReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceivedShareReq) XXX_Merge ¶ added in v0.0.5
func (m *ReceivedShareReq) XXX_Merge(src proto.Message)
func (*ReceivedShareReq) XXX_Size ¶ added in v0.0.5
func (m *ReceivedShareReq) XXX_Size() int
func (*ReceivedShareReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *ReceivedShareReq) XXX_Unmarshal(b []byte) error
type ReceivedShareResponse ¶
type ReceivedShareResponse struct {}
func (*ReceivedShareResponse) Descriptor ¶
func (*ReceivedShareResponse) Descriptor() ([]byte, []int)
func (*ReceivedShareResponse) GetShare ¶
func (m *ReceivedShareResponse) GetShare() *FolderShare
func (*ReceivedShareResponse) GetStatus ¶
func (m *ReceivedShareResponse) GetStatus() StatusCode
func (*ReceivedShareResponse) ProtoMessage ¶
func (*ReceivedShareResponse) ProtoMessage()
func (*ReceivedShareResponse) Reset ¶
func (m *ReceivedShareResponse) Reset()
func (*ReceivedShareResponse) String ¶
func (m *ReceivedShareResponse) String() string
func (*ReceivedShareResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *ReceivedShareResponse) XXX_DiscardUnknown()
func (*ReceivedShareResponse) XXX_Marshal ¶ added in v0.0.5
func (m *ReceivedShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceivedShareResponse) XXX_Merge ¶ added in v0.0.5
func (m *ReceivedShareResponse) XXX_Merge(src proto.Message)
func (*ReceivedShareResponse) XXX_Size ¶ added in v0.0.5
func (m *ReceivedShareResponse) XXX_Size() int
func (*ReceivedShareResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *ReceivedShareResponse) XXX_Unmarshal(b []byte) error
type RecycleEntry ¶
type RecycleEntry struct { RestorePath string `protobuf:"bytes,1,opt,name=restore_path,json=restorePath,proto3" json:"restore_path,omitempty"` RestoreKey string `protobuf:"bytes,2,opt,name=restore_key,json=restoreKey,proto3" json:"restore_key,omitempty"` Size uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` DelMtime uint64 `protobuf:"varint,4,opt,name=del_mtime,json=delMtime,proto3" json:"del_mtime,omitempty"` IsDir bool `protobuf:"varint,5,opt,name=is_dir,json=isDir,proto3" json:"is_dir,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecycleEntry) Descriptor ¶
func (*RecycleEntry) Descriptor() ([]byte, []int)
func (*RecycleEntry) GetDelMtime ¶
func (m *RecycleEntry) GetDelMtime() uint64
func (*RecycleEntry) GetIsDir ¶
func (m *RecycleEntry) GetIsDir() bool
func (*RecycleEntry) GetRestoreKey ¶
func (m *RecycleEntry) GetRestoreKey() string
func (*RecycleEntry) GetRestorePath ¶
func (m *RecycleEntry) GetRestorePath() string
func (*RecycleEntry) GetSize ¶
func (m *RecycleEntry) GetSize() uint64
func (*RecycleEntry) ProtoMessage ¶
func (*RecycleEntry) ProtoMessage()
func (*RecycleEntry) Reset ¶
func (m *RecycleEntry) Reset()
func (*RecycleEntry) String ¶
func (m *RecycleEntry) String() string
func (*RecycleEntry) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *RecycleEntry) XXX_DiscardUnknown()
func (*RecycleEntry) XXX_Marshal ¶ added in v0.0.5
func (m *RecycleEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecycleEntry) XXX_Merge ¶ added in v0.0.5
func (m *RecycleEntry) XXX_Merge(src proto.Message)
func (*RecycleEntry) XXX_Size ¶ added in v0.0.5
func (m *RecycleEntry) XXX_Size() int
func (*RecycleEntry) XXX_Unmarshal ¶ added in v0.0.5
func (m *RecycleEntry) XXX_Unmarshal(b []byte) error
type RecycleEntryReq ¶
type RecycleEntryReq struct { RestoreKey string `protobuf:"bytes,1,opt,name=restore_key,json=restoreKey,proto3" json:"restore_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecycleEntryReq) Descriptor ¶
func (*RecycleEntryReq) Descriptor() ([]byte, []int)
func (*RecycleEntryReq) GetRestoreKey ¶
func (m *RecycleEntryReq) GetRestoreKey() string
func (*RecycleEntryReq) ProtoMessage ¶
func (*RecycleEntryReq) ProtoMessage()
func (*RecycleEntryReq) Reset ¶
func (m *RecycleEntryReq) Reset()
func (*RecycleEntryReq) String ¶
func (m *RecycleEntryReq) String() string
func (*RecycleEntryReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *RecycleEntryReq) XXX_DiscardUnknown()
func (*RecycleEntryReq) XXX_Marshal ¶ added in v0.0.5
func (m *RecycleEntryReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecycleEntryReq) XXX_Merge ¶ added in v0.0.5
func (m *RecycleEntryReq) XXX_Merge(src proto.Message)
func (*RecycleEntryReq) XXX_Size ¶ added in v0.0.5
func (m *RecycleEntryReq) XXX_Size() int
func (*RecycleEntryReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *RecycleEntryReq) XXX_Unmarshal(b []byte) error
type RecycleEntryResponse ¶
type RecycleEntryResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` RecycleEntry *RecycleEntry `protobuf:"bytes,2,opt,name=recycleEntry,proto3" json:"recycleEntry,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecycleEntryResponse) Descriptor ¶
func (*RecycleEntryResponse) Descriptor() ([]byte, []int)
func (*RecycleEntryResponse) GetRecycleEntry ¶
func (m *RecycleEntryResponse) GetRecycleEntry() *RecycleEntry
func (*RecycleEntryResponse) GetStatus ¶
func (m *RecycleEntryResponse) GetStatus() StatusCode
func (*RecycleEntryResponse) ProtoMessage ¶
func (*RecycleEntryResponse) ProtoMessage()
func (*RecycleEntryResponse) Reset ¶
func (m *RecycleEntryResponse) Reset()
func (*RecycleEntryResponse) String ¶
func (m *RecycleEntryResponse) String() string
func (*RecycleEntryResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *RecycleEntryResponse) XXX_DiscardUnknown()
func (*RecycleEntryResponse) XXX_Marshal ¶ added in v0.0.5
func (m *RecycleEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecycleEntryResponse) XXX_Merge ¶ added in v0.0.5
func (m *RecycleEntryResponse) XXX_Merge(src proto.Message)
func (*RecycleEntryResponse) XXX_Size ¶ added in v0.0.5
func (m *RecycleEntryResponse) XXX_Size() int
func (*RecycleEntryResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *RecycleEntryResponse) XXX_Unmarshal(b []byte) error
type Revision ¶
type Revision struct { RevKey string `protobuf:"bytes,1,opt,name=rev_key,json=revKey,proto3" json:"rev_key,omitempty"` Size uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Mtime uint64 `protobuf:"varint,3,opt,name=mtime,proto3" json:"mtime,omitempty"` IsDir bool `protobuf:"varint,4,opt,name=is_dir,json=isDir,proto3" json:"is_dir,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Revision) Descriptor ¶
func (*Revision) ProtoMessage ¶
func (*Revision) ProtoMessage()
func (*Revision) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *Revision) XXX_DiscardUnknown()
func (*Revision) XXX_Marshal ¶ added in v0.0.5
func (*Revision) XXX_Unmarshal ¶ added in v0.0.5
type RevisionReq ¶
type RevisionReq struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` RevKey string `protobuf:"bytes,2,opt,name=rev_key,json=revKey,proto3" json:"rev_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RevisionReq) Descriptor ¶
func (*RevisionReq) Descriptor() ([]byte, []int)
func (*RevisionReq) GetPath ¶
func (m *RevisionReq) GetPath() string
func (*RevisionReq) GetRevKey ¶
func (m *RevisionReq) GetRevKey() string
func (*RevisionReq) ProtoMessage ¶
func (*RevisionReq) ProtoMessage()
func (*RevisionReq) Reset ¶
func (m *RevisionReq) Reset()
func (*RevisionReq) String ¶
func (m *RevisionReq) String() string
func (*RevisionReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *RevisionReq) XXX_DiscardUnknown()
func (*RevisionReq) XXX_Marshal ¶ added in v0.0.5
func (m *RevisionReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RevisionReq) XXX_Merge ¶ added in v0.0.5
func (m *RevisionReq) XXX_Merge(src proto.Message)
func (*RevisionReq) XXX_Size ¶ added in v0.0.5
func (m *RevisionReq) XXX_Size() int
func (*RevisionReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *RevisionReq) XXX_Unmarshal(b []byte) error
type RevisionResponse ¶
type RevisionResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` Revision *Revision `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RevisionResponse) Descriptor ¶
func (*RevisionResponse) Descriptor() ([]byte, []int)
func (*RevisionResponse) GetRevision ¶
func (m *RevisionResponse) GetRevision() *Revision
func (*RevisionResponse) GetStatus ¶
func (m *RevisionResponse) GetStatus() StatusCode
func (*RevisionResponse) ProtoMessage ¶
func (*RevisionResponse) ProtoMessage()
func (*RevisionResponse) Reset ¶
func (m *RevisionResponse) Reset()
func (*RevisionResponse) String ¶
func (m *RevisionResponse) String() string
func (*RevisionResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *RevisionResponse) XXX_DiscardUnknown()
func (*RevisionResponse) XXX_Marshal ¶ added in v0.0.5
func (m *RevisionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RevisionResponse) XXX_Merge ¶ added in v0.0.5
func (m *RevisionResponse) XXX_Merge(src proto.Message)
func (*RevisionResponse) XXX_Size ¶ added in v0.0.5
func (m *RevisionResponse) XXX_Size() int
func (*RevisionResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *RevisionResponse) XXX_Unmarshal(b []byte) error
type ShareClient ¶
type ShareClient interface { // with user context, relative to the user logged in // with user context, relative to user logged in // with user context, relative to the user logged in, in this case, the receiver }
ShareClient is the client API for Share service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewShareClient ¶
func NewShareClient(cc *grpc.ClientConn) ShareClient
type ShareIDReq ¶
type ShareIDReq struct {}
func (*ShareIDReq) Descriptor ¶
func (*ShareIDReq) Descriptor() ([]byte, []int)
func (*ShareIDReq) GetId ¶
func (m *ShareIDReq) GetId() string
func (*ShareIDReq) ProtoMessage ¶
func (*ShareIDReq) ProtoMessage()
func (*ShareIDReq) Reset ¶
func (m *ShareIDReq) Reset()
func (*ShareIDReq) String ¶
func (m *ShareIDReq) String() string
func (*ShareIDReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *ShareIDReq) XXX_DiscardUnknown()
func (*ShareIDReq) XXX_Marshal ¶ added in v0.0.5
func (m *ShareIDReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShareIDReq) XXX_Merge ¶ added in v0.0.5
func (m *ShareIDReq) XXX_Merge(src proto.Message)
func (*ShareIDReq) XXX_Size ¶ added in v0.0.5
func (m *ShareIDReq) XXX_Size() int
func (*ShareIDReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *ShareIDReq) XXX_Unmarshal(b []byte) error
type ShareManager ¶
type ShareManager interface {}
type ShareRecipient ¶
type ShareRecipient struct {}
func (*ShareRecipient) Descriptor ¶
func (*ShareRecipient) Descriptor() ([]byte, []int)
func (*ShareRecipient) GetIdentity ¶
func (m *ShareRecipient) GetIdentity() string
func (*ShareRecipient) GetType ¶
func (m *ShareRecipient) GetType() ShareRecipient_RecipientType
func (*ShareRecipient) ProtoMessage ¶
func (*ShareRecipient) ProtoMessage()
func (*ShareRecipient) Reset ¶
func (m *ShareRecipient) Reset()
func (*ShareRecipient) String ¶
func (m *ShareRecipient) String() string
func (*ShareRecipient) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *ShareRecipient) XXX_DiscardUnknown()
func (*ShareRecipient) XXX_Marshal ¶ added in v0.0.5
func (m *ShareRecipient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShareRecipient) XXX_Merge ¶ added in v0.0.5
func (m *ShareRecipient) XXX_Merge(src proto.Message)
func (*ShareRecipient) XXX_Size ¶ added in v0.0.5
func (m *ShareRecipient) XXX_Size() int
func (*ShareRecipient) XXX_Unmarshal ¶ added in v0.0.5
func (m *ShareRecipient) XXX_Unmarshal(b []byte) error
type ShareRecipient_RecipientType ¶
type ShareRecipient_RecipientType int32
const ()
func (ShareRecipient_RecipientType) EnumDescriptor ¶
func (ShareRecipient_RecipientType) EnumDescriptor() ([]byte, []int)
func (ShareRecipient_RecipientType) String ¶
func (x ShareRecipient_RecipientType) String() string
type ShareServer ¶
type ShareServer interface { // with user context, relative to the user logged in // with user context, relative to user logged in // with user context, relative to the user logged in, in this case, the receiver }
ShareServer is the server API for Share service.
type Share_ListFolderSharesClient ¶
type Share_ListFolderSharesClient interface { grpc.ClientStream }
type Share_ListFolderSharesServer ¶
type Share_ListFolderSharesServer interface { grpc.ServerStream }
type Share_ListPublicLinksClient ¶
type Share_ListPublicLinksClient interface { grpc.ClientStream }
type Share_ListPublicLinksServer ¶
type Share_ListPublicLinksServer interface { grpc.ServerStream }
type Share_ListReceivedSharesClient ¶
type Share_ListReceivedSharesClient interface { grpc.ClientStream }
type Share_ListReceivedSharesServer ¶
type Share_ListReceivedSharesServer interface { grpc.ServerStream }
type StatusCode ¶
type StatusCode int32
const ( StatusCode_OK StatusCode = 0 StatusCode_UNKNOWN StatusCode = 1 StatusCode_STORAGE_NOT_FOUND StatusCode = 2 StatusCode_STORAGE_ALREADY_EXISTS StatusCode = 3 StatusCode_STORAGE_PERMISSIONDENIED StatusCode = 4 StatusCode_CONTEXT_USER_REQUIRED StatusCode = 5 StatusCode_PATH_INVALID StatusCode = 6 StatusCode_PUBLIC_LINK_NOT_FOUND StatusCode = 7 StatusCode_PUBLIC_LINK_INVALID_DATE StatusCode = 8 StatusCode_PUBLIC_LINK_INVALID_PASSWORD StatusCode = 9 StatusCode_STORAGE_NOT_SUPPORTED StatusCode = 10 StatusCode_USER_NOT_FOUND StatusCode = 11 StatusCode_TOKEN_INVALID StatusCode = 12 StatusCode_FOLDER_SHARE_NOT_FOUND StatusCode = 13 )
func GetStatus ¶
func GetStatus(err error) StatusCode
func (StatusCode) EnumDescriptor ¶
func (StatusCode) EnumDescriptor() ([]byte, []int)
func (StatusCode) String ¶
func (x StatusCode) String() string
type Storage ¶
type Storage interface { CreateDir(ctx context.Context, name string) error Delete(ctx context.Context, name string) error Move(ctx context.Context, oldName, newName string) error GetMetadata(ctx context.Context, name string) (*Metadata, error) ListFolder(ctx context.Context, name string) ([]*Metadata, error) Upload(ctx context.Context, name string, r io.ReadCloser) error Download(ctx context.Context, name string) (io.ReadCloser, error) ListRevisions(ctx context.Context, path string) ([]*Revision, error) DownloadRevision(ctx context.Context, path, revisionKey string) (io.ReadCloser, error) RestoreRevision(ctx context.Context, path, revisionKey string) error ListRecycle(ctx context.Context, path string) ([]*RecycleEntry, error) RestoreRecycleEntry(ctx context.Context, restoreKey string) error EmptyRecycle(ctx context.Context, path string) error GetPathByID(ctx context.Context, id string) (string, error) SetACL(ctx context.Context, path string, readOnly bool, recipient *ShareRecipient, shareList []*FolderShare) error UnsetACL(ctx context.Context, path string, recipient *ShareRecipient, shareList []*FolderShare) error UpdateACL(ctx context.Context, path string, readOnly bool, recipient *ShareRecipient, shareList []*FolderShare) error GetQuota(ctx context.Context, path string) (int, int, error) }
type StorageClient ¶
type StorageClient interface { CreateDir(ctx context.Context, in *PathReq, opts ...grpc.CallOption) (*EmptyResponse, error) Delete(ctx context.Context, in *PathReq, opts ...grpc.CallOption) (*EmptyResponse, error) Move(ctx context.Context, in *MoveReq, opts ...grpc.CallOption) (*EmptyResponse, error) Inspect(ctx context.Context, in *PathReq, opts ...grpc.CallOption) (*MetadataResponse, error) ListFolder(ctx context.Context, in *PathReq, opts ...grpc.CallOption) (Storage_ListFolderClient, error) StartWriteTx(ctx context.Context, in *EmptyReq, opts ...grpc.CallOption) (*TxInfoResponse, error) WriteChunk(ctx context.Context, opts ...grpc.CallOption) (Storage_WriteChunkClient, error) FinishWriteTx(ctx context.Context, in *TxEnd, opts ...grpc.CallOption) (*EmptyResponse, error) ReadFile(ctx context.Context, in *PathReq, opts ...grpc.CallOption) (Storage_ReadFileClient, error) ListRevisions(ctx context.Context, in *PathReq, opts ...grpc.CallOption) (Storage_ListRevisionsClient, error) ReadRevision(ctx context.Context, in *RevisionReq, opts ...grpc.CallOption) (Storage_ReadRevisionClient, error) RestoreRevision(ctx context.Context, in *RevisionReq, opts ...grpc.CallOption) (*EmptyResponse, error) ListRecycle(ctx context.Context, in *PathReq, opts ...grpc.CallOption) (Storage_ListRecycleClient, error) RestoreRecycleEntry(ctx context.Context, in *RecycleEntryReq, opts ...grpc.CallOption) (*EmptyResponse, error) EmptyRecycle(ctx context.Context, in *PathReq, opts ...grpc.CallOption) (*EmptyResponse, error) SetACL(ctx context.Context, in *ACLReq, opts ...grpc.CallOption) (*EmptyResponse, error) UpdateACL(ctx context.Context, in *ACLReq, opts ...grpc.CallOption) (*EmptyResponse, error) UnsetACL(ctx context.Context, in *ACLReq, opts ...grpc.CallOption) (*EmptyResponse, error) GetQuota(ctx context.Context, in *QuotaReq, opts ...grpc.CallOption) (*QuotaResponse, error) }
StorageClient is the client API for Storage service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStorageClient ¶
func NewStorageClient(cc *grpc.ClientConn) StorageClient
type StorageServer ¶
type StorageServer interface { CreateDir(context.Context, *PathReq) (*EmptyResponse, error) Delete(context.Context, *PathReq) (*EmptyResponse, error) Move(context.Context, *MoveReq) (*EmptyResponse, error) Inspect(context.Context, *PathReq) (*MetadataResponse, error) ListFolder(*PathReq, Storage_ListFolderServer) error StartWriteTx(context.Context, *EmptyReq) (*TxInfoResponse, error) WriteChunk(Storage_WriteChunkServer) error FinishWriteTx(context.Context, *TxEnd) (*EmptyResponse, error) ReadFile(*PathReq, Storage_ReadFileServer) error ListRevisions(*PathReq, Storage_ListRevisionsServer) error ReadRevision(*RevisionReq, Storage_ReadRevisionServer) error RestoreRevision(context.Context, *RevisionReq) (*EmptyResponse, error) ListRecycle(*PathReq, Storage_ListRecycleServer) error RestoreRecycleEntry(context.Context, *RecycleEntryReq) (*EmptyResponse, error) EmptyRecycle(context.Context, *PathReq) (*EmptyResponse, error) SetACL(context.Context, *ACLReq) (*EmptyResponse, error) UpdateACL(context.Context, *ACLReq) (*EmptyResponse, error) UnsetACL(context.Context, *ACLReq) (*EmptyResponse, error) GetQuota(context.Context, *QuotaReq) (*QuotaResponse, error) }
StorageServer is the server API for Storage service.
type StorageWrapper ¶
type Storage_ListFolderClient ¶
type Storage_ListFolderClient interface { Recv() (*MetadataResponse, error) grpc.ClientStream }
type Storage_ListFolderServer ¶
type Storage_ListFolderServer interface { Send(*MetadataResponse) error grpc.ServerStream }
type Storage_ListRecycleClient ¶
type Storage_ListRecycleClient interface { Recv() (*RecycleEntryResponse, error) grpc.ClientStream }
type Storage_ListRecycleServer ¶
type Storage_ListRecycleServer interface { Send(*RecycleEntryResponse) error grpc.ServerStream }
type Storage_ListRevisionsClient ¶
type Storage_ListRevisionsClient interface { Recv() (*RevisionResponse, error) grpc.ClientStream }
type Storage_ListRevisionsServer ¶
type Storage_ListRevisionsServer interface { Send(*RevisionResponse) error grpc.ServerStream }
type Storage_ReadFileClient ¶
type Storage_ReadFileClient interface { Recv() (*DataChunkResponse, error) grpc.ClientStream }
type Storage_ReadFileServer ¶
type Storage_ReadFileServer interface { Send(*DataChunkResponse) error grpc.ServerStream }
type Storage_ReadRevisionClient ¶
type Storage_ReadRevisionClient interface { Recv() (*DataChunkResponse, error) grpc.ClientStream }
type Storage_ReadRevisionServer ¶
type Storage_ReadRevisionServer interface { Send(*DataChunkResponse) error grpc.ServerStream }
type Storage_WriteChunkClient ¶
type Storage_WriteChunkClient interface { Send(*TxChunk) error CloseAndRecv() (*WriteSummaryResponse, error) grpc.ClientStream }
type Storage_WriteChunkServer ¶
type Storage_WriteChunkServer interface { SendAndClose(*WriteSummaryResponse) error Recv() (*TxChunk, error) grpc.ServerStream }
type Tag ¶ added in v0.0.2
type Tag struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ItemType Tag_ItemType `protobuf:"varint,2,opt,name=item_type,json=itemType,proto3,enum=api.Tag_ItemType" json:"item_type,omitempty"` Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"` FileIdPrefix string `protobuf:"bytes,4,opt,name=file_id_prefix,json=fileIdPrefix,proto3" json:"file_id_prefix,omitempty"` FileId string `protobuf:"bytes,5,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"` TagKey string `protobuf:"bytes,6,opt,name=tag_key,json=tagKey,proto3" json:"tag_key,omitempty"` TagValue string `protobuf:"bytes,7,opt,name=tag_value,json=tagValue,proto3" json:"tag_value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Tag) Descriptor ¶ added in v0.0.2
func (*Tag) GetFileIdPrefix ¶ added in v0.0.2
func (*Tag) GetItemType ¶ added in v0.0.2
func (m *Tag) GetItemType() Tag_ItemType
func (*Tag) GetTagValue ¶ added in v0.0.2
func (*Tag) ProtoMessage ¶ added in v0.0.2
func (*Tag) ProtoMessage()
func (*Tag) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *Tag) XXX_DiscardUnknown()
func (*Tag) XXX_Marshal ¶ added in v0.0.5
func (*Tag) XXX_Unmarshal ¶ added in v0.0.5
type TagManager ¶ added in v0.0.2
type TagReq ¶ added in v0.0.2
type TagReq struct { TagKey string `protobuf:"bytes,1,opt,name=tag_key,json=tagKey,proto3" json:"tag_key,omitempty"` TagVal string `protobuf:"bytes,2,opt,name=tag_val,json=tagVal,proto3" json:"tag_val,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TagReq) Descriptor ¶ added in v0.0.2
func (*TagReq) ProtoMessage ¶ added in v0.0.2
func (*TagReq) ProtoMessage()
func (*TagReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *TagReq) XXX_DiscardUnknown()
func (*TagReq) XXX_Marshal ¶ added in v0.0.5
func (*TagReq) XXX_Unmarshal ¶ added in v0.0.5
type TagResponse ¶ added in v0.0.2
type TagResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` Tag *Tag `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TagResponse) Descriptor ¶ added in v0.0.2
func (*TagResponse) Descriptor() ([]byte, []int)
func (*TagResponse) GetStatus ¶ added in v0.0.2
func (m *TagResponse) GetStatus() StatusCode
func (*TagResponse) GetTag ¶ added in v0.0.2
func (m *TagResponse) GetTag() *Tag
func (*TagResponse) ProtoMessage ¶ added in v0.0.2
func (*TagResponse) ProtoMessage()
func (*TagResponse) Reset ¶ added in v0.0.2
func (m *TagResponse) Reset()
func (*TagResponse) String ¶ added in v0.0.2
func (m *TagResponse) String() string
func (*TagResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *TagResponse) XXX_DiscardUnknown()
func (*TagResponse) XXX_Marshal ¶ added in v0.0.5
func (m *TagResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TagResponse) XXX_Merge ¶ added in v0.0.5
func (m *TagResponse) XXX_Merge(src proto.Message)
func (*TagResponse) XXX_Size ¶ added in v0.0.5
func (m *TagResponse) XXX_Size() int
func (*TagResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *TagResponse) XXX_Unmarshal(b []byte) error
type Tag_ItemType ¶ added in v0.0.2
type Tag_ItemType int32
const ( Tag_FOLDER Tag_ItemType = 0 Tag_FILE Tag_ItemType = 1 )
func (Tag_ItemType) EnumDescriptor ¶ added in v0.0.2
func (Tag_ItemType) EnumDescriptor() ([]byte, []int)
func (Tag_ItemType) String ¶ added in v0.0.2
func (x Tag_ItemType) String() string
type TaggerClient ¶ added in v0.0.2
type TaggerClient interface { GetTags(ctx context.Context, in *TagReq, opts ...grpc.CallOption) (Tagger_GetTagsClient, error) SetTag(ctx context.Context, in *TagReq, opts ...grpc.CallOption) (*EmptyResponse, error) UnSetTag(ctx context.Context, in *TagReq, opts ...grpc.CallOption) (*EmptyResponse, error) }
TaggerClient is the client API for Tagger service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTaggerClient ¶ added in v0.0.2
func NewTaggerClient(cc *grpc.ClientConn) TaggerClient
type TaggerServer ¶ added in v0.0.2
type TaggerServer interface { GetTags(*TagReq, Tagger_GetTagsServer) error SetTag(context.Context, *TagReq) (*EmptyResponse, error) UnSetTag(context.Context, *TagReq) (*EmptyResponse, error) }
TaggerServer is the server API for Tagger service.
type Tagger_GetTagsClient ¶ added in v0.0.2
type Tagger_GetTagsClient interface { Recv() (*TagResponse, error) grpc.ClientStream }
type Tagger_GetTagsServer ¶ added in v0.0.2
type Tagger_GetTagsServer interface { Send(*TagResponse) error grpc.ServerStream }
type TokenManager ¶
type TokenManager interface { ForgeUserToken(ctx context.Context, user *User) (string, error) DismantleUserToken(ctx context.Context, token string) (*User, error) ForgePublicLinkToken(ctx context.Context, pl *PublicLink) (string, error) DismantlePublicLinkToken(ctx context.Context, token string) (*PublicLink, error) }
type TokenReq ¶
type TokenReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TokenReq) Descriptor ¶
func (*TokenReq) ProtoMessage ¶
func (*TokenReq) ProtoMessage()
func (*TokenReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *TokenReq) XXX_DiscardUnknown()
func (*TokenReq) XXX_Marshal ¶ added in v0.0.5
func (*TokenReq) XXX_Unmarshal ¶ added in v0.0.5
type TokenResponse ¶
type TokenResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TokenResponse) Descriptor ¶
func (*TokenResponse) Descriptor() ([]byte, []int)
func (*TokenResponse) GetStatus ¶
func (m *TokenResponse) GetStatus() StatusCode
func (*TokenResponse) GetToken ¶
func (m *TokenResponse) GetToken() string
func (*TokenResponse) ProtoMessage ¶
func (*TokenResponse) ProtoMessage()
func (*TokenResponse) Reset ¶
func (m *TokenResponse) Reset()
func (*TokenResponse) String ¶
func (m *TokenResponse) String() string
func (*TokenResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *TokenResponse) XXX_DiscardUnknown()
func (*TokenResponse) XXX_Marshal ¶ added in v0.0.5
func (m *TokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenResponse) XXX_Merge ¶ added in v0.0.5
func (m *TokenResponse) XXX_Merge(src proto.Message)
func (*TokenResponse) XXX_Size ¶ added in v0.0.5
func (m *TokenResponse) XXX_Size() int
func (*TokenResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *TokenResponse) XXX_Unmarshal(b []byte) error
type TxChunk ¶
type TxChunk struct { TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` Length uint64 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
maybe add checksum data ?
func (*TxChunk) Descriptor ¶
func (*TxChunk) ProtoMessage ¶
func (*TxChunk) ProtoMessage()
func (*TxChunk) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *TxChunk) XXX_DiscardUnknown()
func (*TxChunk) XXX_Marshal ¶ added in v0.0.5
func (*TxChunk) XXX_Unmarshal ¶ added in v0.0.5
type TxEnd ¶
type TxEnd struct { TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Checksum string `protobuf:"bytes,3,opt,name=checksum,proto3" json:"checksum,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxEnd) Descriptor ¶
func (*TxEnd) GetChecksum ¶
func (*TxEnd) ProtoMessage ¶
func (*TxEnd) ProtoMessage()
func (*TxEnd) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *TxEnd) XXX_DiscardUnknown()
func (*TxEnd) XXX_Marshal ¶ added in v0.0.5
func (*TxEnd) XXX_Unmarshal ¶ added in v0.0.5
type TxInfo ¶
type TxInfo struct { TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxInfo) Descriptor ¶
func (*TxInfo) ProtoMessage ¶
func (*TxInfo) ProtoMessage()
func (*TxInfo) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *TxInfo) XXX_DiscardUnknown()
func (*TxInfo) XXX_Marshal ¶ added in v0.0.5
func (*TxInfo) XXX_Unmarshal ¶ added in v0.0.5
type TxInfoResponse ¶
type TxInfoResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` TxInfo *TxInfo `protobuf:"bytes,2,opt,name=txInfo,proto3" json:"txInfo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxInfoResponse) Descriptor ¶
func (*TxInfoResponse) Descriptor() ([]byte, []int)
func (*TxInfoResponse) GetStatus ¶
func (m *TxInfoResponse) GetStatus() StatusCode
func (*TxInfoResponse) GetTxInfo ¶
func (m *TxInfoResponse) GetTxInfo() *TxInfo
func (*TxInfoResponse) ProtoMessage ¶
func (*TxInfoResponse) ProtoMessage()
func (*TxInfoResponse) Reset ¶
func (m *TxInfoResponse) Reset()
func (*TxInfoResponse) String ¶
func (m *TxInfoResponse) String() string
func (*TxInfoResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *TxInfoResponse) XXX_DiscardUnknown()
func (*TxInfoResponse) XXX_Marshal ¶ added in v0.0.5
func (m *TxInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxInfoResponse) XXX_Merge ¶ added in v0.0.5
func (m *TxInfoResponse) XXX_Merge(src proto.Message)
func (*TxInfoResponse) XXX_Size ¶ added in v0.0.5
func (m *TxInfoResponse) XXX_Size() int
func (*TxInfoResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *TxInfoResponse) XXX_Unmarshal(b []byte) error
type UnshareFolderReq ¶
type UnshareFolderReq struct {}
func (*UnshareFolderReq) Descriptor ¶
func (*UnshareFolderReq) Descriptor() ([]byte, []int)
func (*UnshareFolderReq) GetId ¶
func (m *UnshareFolderReq) GetId() string
func (*UnshareFolderReq) ProtoMessage ¶
func (*UnshareFolderReq) ProtoMessage()
func (*UnshareFolderReq) Reset ¶
func (m *UnshareFolderReq) Reset()
func (*UnshareFolderReq) String ¶
func (m *UnshareFolderReq) String() string
func (*UnshareFolderReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *UnshareFolderReq) XXX_DiscardUnknown()
func (*UnshareFolderReq) XXX_Marshal ¶ added in v0.0.5
func (m *UnshareFolderReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnshareFolderReq) XXX_Merge ¶ added in v0.0.5
func (m *UnshareFolderReq) XXX_Merge(src proto.Message)
func (*UnshareFolderReq) XXX_Size ¶ added in v0.0.5
func (m *UnshareFolderReq) XXX_Size() int
func (*UnshareFolderReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *UnshareFolderReq) XXX_Unmarshal(b []byte) error
type UpdateFolderShareReq ¶
type UpdateFolderShareReq struct {}
func (*UpdateFolderShareReq) Descriptor ¶
func (*UpdateFolderShareReq) Descriptor() ([]byte, []int)
func (*UpdateFolderShareReq) GetId ¶
func (m *UpdateFolderShareReq) GetId() string
func (*UpdateFolderShareReq) GetReadOnly ¶
func (m *UpdateFolderShareReq) GetReadOnly() bool
func (*UpdateFolderShareReq) GetUpdateReadOnly ¶
func (m *UpdateFolderShareReq) GetUpdateReadOnly() bool
func (*UpdateFolderShareReq) ProtoMessage ¶
func (*UpdateFolderShareReq) ProtoMessage()
func (*UpdateFolderShareReq) Reset ¶
func (m *UpdateFolderShareReq) Reset()
func (*UpdateFolderShareReq) String ¶
func (m *UpdateFolderShareReq) String() string
func (*UpdateFolderShareReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *UpdateFolderShareReq) XXX_DiscardUnknown()
func (*UpdateFolderShareReq) XXX_Marshal ¶ added in v0.0.5
func (m *UpdateFolderShareReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateFolderShareReq) XXX_Merge ¶ added in v0.0.5
func (m *UpdateFolderShareReq) XXX_Merge(src proto.Message)
func (*UpdateFolderShareReq) XXX_Size ¶ added in v0.0.5
func (m *UpdateFolderShareReq) XXX_Size() int
func (*UpdateFolderShareReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *UpdateFolderShareReq) XXX_Unmarshal(b []byte) error
type UpdateLinkReq ¶
type UpdateLinkReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UpdatePassword bool `protobuf:"varint,2,opt,name=update_password,json=updatePassword,proto3" json:"update_password,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` UpdateExpiration bool `protobuf:"varint,4,opt,name=update_expiration,json=updateExpiration,proto3" json:"update_expiration,omitempty"` Expiration uint64 `protobuf:"varint,5,opt,name=expiration,proto3" json:"expiration,omitempty"` ReadOnly bool `protobuf:"varint,6,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` UpdateReadOnly bool `protobuf:"varint,7,opt,name=update_read_only,json=updateReadOnly,proto3" json:"update_read_only,omitempty"` DropOnly bool `protobuf:"varint,8,opt,name=drop_only,json=dropOnly,proto3" json:"drop_only,omitempty"` UpdateDropOnly bool `protobuf:"varint,9,opt,name=update_drop_only,json=updateDropOnly,proto3" json:"update_drop_only,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateLinkReq) Descriptor ¶
func (*UpdateLinkReq) Descriptor() ([]byte, []int)
func (*UpdateLinkReq) GetDropOnly ¶ added in v0.0.5
func (m *UpdateLinkReq) GetDropOnly() bool
func (*UpdateLinkReq) GetExpiration ¶
func (m *UpdateLinkReq) GetExpiration() uint64
func (*UpdateLinkReq) GetId ¶
func (m *UpdateLinkReq) GetId() string
func (*UpdateLinkReq) GetPassword ¶
func (m *UpdateLinkReq) GetPassword() string
func (*UpdateLinkReq) GetReadOnly ¶
func (m *UpdateLinkReq) GetReadOnly() bool
func (*UpdateLinkReq) GetUpdateDropOnly ¶ added in v0.0.5
func (m *UpdateLinkReq) GetUpdateDropOnly() bool
func (*UpdateLinkReq) GetUpdateExpiration ¶
func (m *UpdateLinkReq) GetUpdateExpiration() bool
func (*UpdateLinkReq) GetUpdatePassword ¶
func (m *UpdateLinkReq) GetUpdatePassword() bool
func (*UpdateLinkReq) GetUpdateReadOnly ¶
func (m *UpdateLinkReq) GetUpdateReadOnly() bool
func (*UpdateLinkReq) ProtoMessage ¶
func (*UpdateLinkReq) ProtoMessage()
func (*UpdateLinkReq) Reset ¶
func (m *UpdateLinkReq) Reset()
func (*UpdateLinkReq) String ¶
func (m *UpdateLinkReq) String() string
func (*UpdateLinkReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *UpdateLinkReq) XXX_DiscardUnknown()
func (*UpdateLinkReq) XXX_Marshal ¶ added in v0.0.5
func (m *UpdateLinkReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateLinkReq) XXX_Merge ¶ added in v0.0.5
func (m *UpdateLinkReq) XXX_Merge(src proto.Message)
func (*UpdateLinkReq) XXX_Size ¶ added in v0.0.5
func (m *UpdateLinkReq) XXX_Size() int
func (*UpdateLinkReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *UpdateLinkReq) XXX_Unmarshal(b []byte) error
type User ¶
type User struct { AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` Groups []string `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"` DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) GetAccountId ¶
func (*User) GetDisplayName ¶ added in v0.0.5
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Marshal ¶ added in v0.0.5
func (*User) XXX_Unmarshal ¶ added in v0.0.5
type UserManager ¶ added in v0.0.2
type UserResponse ¶
type UserResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserResponse) Descriptor ¶
func (*UserResponse) Descriptor() ([]byte, []int)
func (*UserResponse) GetStatus ¶
func (m *UserResponse) GetStatus() StatusCode
func (*UserResponse) GetUser ¶
func (m *UserResponse) GetUser() *User
func (*UserResponse) ProtoMessage ¶
func (*UserResponse) ProtoMessage()
func (*UserResponse) Reset ¶
func (m *UserResponse) Reset()
func (*UserResponse) String ¶
func (m *UserResponse) String() string
func (*UserResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *UserResponse) XXX_DiscardUnknown()
func (*UserResponse) XXX_Marshal ¶ added in v0.0.5
func (m *UserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserResponse) XXX_Merge ¶ added in v0.0.5
func (m *UserResponse) XXX_Merge(src proto.Message)
func (*UserResponse) XXX_Size ¶ added in v0.0.5
func (m *UserResponse) XXX_Size() int
func (*UserResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *UserResponse) XXX_Unmarshal(b []byte) error
type VerifyPublicLinkTokenReq ¶ added in v0.0.2
type VerifyPublicLinkTokenReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VerifyPublicLinkTokenReq) Descriptor ¶ added in v0.0.2
func (*VerifyPublicLinkTokenReq) Descriptor() ([]byte, []int)
func (*VerifyPublicLinkTokenReq) GetToken ¶ added in v0.0.2
func (m *VerifyPublicLinkTokenReq) GetToken() string
func (*VerifyPublicLinkTokenReq) ProtoMessage ¶ added in v0.0.2
func (*VerifyPublicLinkTokenReq) ProtoMessage()
func (*VerifyPublicLinkTokenReq) Reset ¶ added in v0.0.2
func (m *VerifyPublicLinkTokenReq) Reset()
func (*VerifyPublicLinkTokenReq) String ¶ added in v0.0.2
func (m *VerifyPublicLinkTokenReq) String() string
func (*VerifyPublicLinkTokenReq) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *VerifyPublicLinkTokenReq) XXX_DiscardUnknown()
func (*VerifyPublicLinkTokenReq) XXX_Marshal ¶ added in v0.0.5
func (m *VerifyPublicLinkTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VerifyPublicLinkTokenReq) XXX_Merge ¶ added in v0.0.5
func (m *VerifyPublicLinkTokenReq) XXX_Merge(src proto.Message)
func (*VerifyPublicLinkTokenReq) XXX_Size ¶ added in v0.0.5
func (m *VerifyPublicLinkTokenReq) XXX_Size() int
func (*VerifyPublicLinkTokenReq) XXX_Unmarshal ¶ added in v0.0.5
func (m *VerifyPublicLinkTokenReq) XXX_Unmarshal(b []byte) error
type VerifyPublicLinkTokenResponse ¶ added in v0.0.2
type VerifyPublicLinkTokenResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` PublicLink *PublicLink `protobuf:"bytes,2,opt,name=public_link,json=publicLink,proto3" json:"public_link,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VerifyPublicLinkTokenResponse) Descriptor ¶ added in v0.0.2
func (*VerifyPublicLinkTokenResponse) Descriptor() ([]byte, []int)
func (*VerifyPublicLinkTokenResponse) GetPublicLink ¶ added in v0.0.2
func (m *VerifyPublicLinkTokenResponse) GetPublicLink() *PublicLink
func (*VerifyPublicLinkTokenResponse) GetStatus ¶ added in v0.0.2
func (m *VerifyPublicLinkTokenResponse) GetStatus() StatusCode
func (*VerifyPublicLinkTokenResponse) ProtoMessage ¶ added in v0.0.2
func (*VerifyPublicLinkTokenResponse) ProtoMessage()
func (*VerifyPublicLinkTokenResponse) Reset ¶ added in v0.0.2
func (m *VerifyPublicLinkTokenResponse) Reset()
func (*VerifyPublicLinkTokenResponse) String ¶ added in v0.0.2
func (m *VerifyPublicLinkTokenResponse) String() string
func (*VerifyPublicLinkTokenResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *VerifyPublicLinkTokenResponse) XXX_DiscardUnknown()
func (*VerifyPublicLinkTokenResponse) XXX_Marshal ¶ added in v0.0.5
func (m *VerifyPublicLinkTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VerifyPublicLinkTokenResponse) XXX_Merge ¶ added in v0.0.5
func (m *VerifyPublicLinkTokenResponse) XXX_Merge(src proto.Message)
func (*VerifyPublicLinkTokenResponse) XXX_Size ¶ added in v0.0.5
func (m *VerifyPublicLinkTokenResponse) XXX_Size() int
func (*VerifyPublicLinkTokenResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *VerifyPublicLinkTokenResponse) XXX_Unmarshal(b []byte) error
type VirtualStorage ¶
type VirtualStorage interface { AddMount(ctx context.Context, mount Mount) error RemoveMount(ctx context.Context, mountPoint string) error ListMounts(ctx context.Context) ([]Mount, error) GetMount(path string) (Mount, error) Storage }
A VirtualStorage is similar to the Linux VFS (Virtual File Switch).
type WriteSummary ¶
type WriteSummary struct { Nchunks uint64 `protobuf:"varint,1,opt,name=nchunks,proto3" json:"nchunks,omitempty"` TotalSize uint64 `protobuf:"varint,2,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WriteSummary) Descriptor ¶
func (*WriteSummary) Descriptor() ([]byte, []int)
func (*WriteSummary) GetNchunks ¶
func (m *WriteSummary) GetNchunks() uint64
func (*WriteSummary) GetTotalSize ¶
func (m *WriteSummary) GetTotalSize() uint64
func (*WriteSummary) ProtoMessage ¶
func (*WriteSummary) ProtoMessage()
func (*WriteSummary) Reset ¶
func (m *WriteSummary) Reset()
func (*WriteSummary) String ¶
func (m *WriteSummary) String() string
func (*WriteSummary) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *WriteSummary) XXX_DiscardUnknown()
func (*WriteSummary) XXX_Marshal ¶ added in v0.0.5
func (m *WriteSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WriteSummary) XXX_Merge ¶ added in v0.0.5
func (m *WriteSummary) XXX_Merge(src proto.Message)
func (*WriteSummary) XXX_Size ¶ added in v0.0.5
func (m *WriteSummary) XXX_Size() int
func (*WriteSummary) XXX_Unmarshal ¶ added in v0.0.5
func (m *WriteSummary) XXX_Unmarshal(b []byte) error
type WriteSummaryResponse ¶
type WriteSummaryResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=api.StatusCode" json:"status,omitempty"` WriteSummary *WriteSummary `protobuf:"bytes,2,opt,name=writeSummary,proto3" json:"writeSummary,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WriteSummaryResponse) Descriptor ¶
func (*WriteSummaryResponse) Descriptor() ([]byte, []int)
func (*WriteSummaryResponse) GetStatus ¶
func (m *WriteSummaryResponse) GetStatus() StatusCode
func (*WriteSummaryResponse) GetWriteSummary ¶
func (m *WriteSummaryResponse) GetWriteSummary() *WriteSummary
func (*WriteSummaryResponse) ProtoMessage ¶
func (*WriteSummaryResponse) ProtoMessage()
func (*WriteSummaryResponse) Reset ¶
func (m *WriteSummaryResponse) Reset()
func (*WriteSummaryResponse) String ¶
func (m *WriteSummaryResponse) String() string
func (*WriteSummaryResponse) XXX_DiscardUnknown ¶ added in v0.0.5
func (m *WriteSummaryResponse) XXX_DiscardUnknown()
func (*WriteSummaryResponse) XXX_Marshal ¶ added in v0.0.5
func (m *WriteSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WriteSummaryResponse) XXX_Merge ¶ added in v0.0.5
func (m *WriteSummaryResponse) XXX_Merge(src proto.Message)
func (*WriteSummaryResponse) XXX_Size ¶ added in v0.0.5
func (m *WriteSummaryResponse) XXX_Size() int
func (*WriteSummaryResponse) XXX_Unmarshal ¶ added in v0.0.5
func (m *WriteSummaryResponse) XXX_Unmarshal(b []byte) error