Documentation ¶
Index ¶
- type Bucket
- func (_m *Bucket) CreateDirectory(ctx context.Context, _a1 string) (path.Resolved, path.Path, error)
- func (_m *Bucket) DeleteDirOrFile(ctx context.Context, _a1 string) (path.Resolved, error)
- func (_m *Bucket) DirExists(ctx context.Context, _a1 string) (bool, error)
- func (_m *Bucket) DownloadFile(ctx context.Context, _a1 string, reader io.Reader) (path.Resolved, path.Path, error)
- func (_m *Bucket) Each(ctx context.Context, _a1 string, ...) (int, error)
- func (_m *Bucket) FileExists(ctx context.Context, _a1 string) (bool, error)
- func (_m *Bucket) GetClient() bucket.BucketsClient
- func (_m *Bucket) GetContext(ctx context.Context) (context.Context, *thread.ID, error)
- func (_m *Bucket) GetData() bucket.BucketData
- func (_m *Bucket) GetFile(ctx context.Context, _a1 string, w io.Writer) error
- func (_m *Bucket) GetThreadID(ctx context.Context) (*thread.ID, error)
- func (_m *Bucket) ItemsCount(ctx context.Context, _a1 string, withRecursive bool) (int32, error)
- func (_m *Bucket) Key() string
- func (_m *Bucket) ListDirectory(ctx context.Context, _a1 string) (*bucket.DirEntries, error)
- func (_m *Bucket) Slug() string
- func (_m *Bucket) UpdatedAt(ctx context.Context, _a1 string) (int64, error)
- func (_m *Bucket) UploadFile(ctx context.Context, _a1 string, reader io.Reader) (path.Resolved, path.Path, error)
- type Client
- func (_m *Client) AcceptSharedFileLink(ctx context.Context, cidHash string, password string, filename string, ...) (*domain.SharedDirEntry, error)
- func (_m *Client) AcceptSharedFilesInvitation(ctx context.Context, invitation domain.Invitation) (domain.Invitation, error)
- func (_m *Client) AttachMailboxNotifier(notif textile.GrpcMailboxNotifier)
- func (_m *Client) AttachSynchronizerNotifier(notif sync.EventNotifier)
- func (_m *Client) BucketBackupRestore(ctx context.Context, bucketSlug string) error
- func (_m *Client) CreateBucket(ctx context.Context, bucketSlug string) (textile.Bucket, error)
- func (_m *Client) DeleteAccount(ctx context.Context) error
- func (_m *Client) DisableSync()
- func (_m *Client) DownloadPublicGatewayItem(ctx context.Context, _a1 cid.Cid) (io.ReadCloser, error)
- func (_m *Client) GetBucket(ctx context.Context, slug string, ...) (textile.Bucket, error)
- func (_m *Client) GetDefaultBucket(ctx context.Context) (textile.Bucket, error)
- func (_m *Client) GetFailedHealthchecks() int
- func (_m *Client) GetMailAsNotifications(ctx context.Context, seek string, limit int) ([]*domain.Notification, error)
- func (_m *Client) GetModel() model.Model
- func (_m *Client) GetPathAccessRoles(ctx context.Context, b textile.Bucket, path string) ([]domain.Member, error)
- func (_m *Client) GetPublicReceivedFile(ctx context.Context, cidHash string, accepted bool) (*domain.SharedDirEntry, string, error)
- func (_m *Client) GetPublicShareBucket(ctx context.Context) (textile.Bucket, error)
- func (_m *Client) GetReceivedFiles(ctx context.Context, accepted bool, seek string, limit int) ([]*domain.SharedDirEntry, string, error)
- func (_m *Client) GetSentFiles(ctx context.Context, seek string, limit int) ([]*domain.SharedDirEntry, string, error)
- func (_m *Client) GetThreadsConnection() (*client.Client, error)
- func (_m *Client) IsHealthy() bool
- func (_m *Client) IsInitialized() bool
- func (_m *Client) IsRunning() bool
- func (_m *Client) JoinBucket(ctx context.Context, slug string, ti *domain.ThreadInfo) (bool, error)
- func (_m *Client) ListBuckets(ctx context.Context) ([]textile.Bucket, error)
- func (_m *Client) Listen(ctx context.Context, dbID string, threadName string) (<-chan client.ListenEvent, error)
- func (_m *Client) RejectSharedFilesInvitation(ctx context.Context, invitation domain.Invitation) (domain.Invitation, error)
- func (_m *Client) RemoveKeys(ctx context.Context) error
- func (_m *Client) RestoreDB(ctx context.Context) error
- func (_m *Client) SendMessage(ctx context.Context, recipient crypto.PubKey, body []byte) (*usersclient.Message, error)
- func (_m *Client) ShareBucket(ctx context.Context, bucketSlug string) (*db.Info, error)
- func (_m *Client) ShareFilesViaPublicKey(ctx context.Context, paths []domain.FullPath, pubkeys []crypto.PubKey, ...) error
- func (_m *Client) Shutdown() error
- func (_m *Client) Start(ctx context.Context, cfg config.Config) error
- func (_m *Client) ToggleBucketBackup(ctx context.Context, bucketSlug string, bucketBackup bool) (bool, error)
- func (_m *Client) WaitForHealthy() chan error
- func (_m *Client) WaitForInitialized() chan bool
- func (_m *Client) WaitForReady() chan bool
- type Config
- type FilesSearchEngine
- func (_m *FilesSearchEngine) DeleteFileData(ctx context.Context, data *search.DeleteIndexRecord) error
- func (_m *FilesSearchEngine) InsertFileData(ctx context.Context, data *search.InsertIndexRecord) (*search.IndexRecord, error)
- func (_m *FilesSearchEngine) QueryFileData(ctx context.Context, query string, limit int) ([]*search.IndexRecord, error)
- func (_m *FilesSearchEngine) Start() error
- type HubAuth
- type Keychain
- func (_m *Keychain) DeleteKeypair() error
- func (_m *Keychain) GenerateKeyFromMnemonic(_a0 ...keychain.GenerateKeyFromMnemonicOpts) (string, error)
- func (_m *Keychain) GenerateKeyPair() ([]byte, []byte, error)
- func (_m *Keychain) GenerateKeyPairWithForce() ([]byte, []byte, error)
- func (_m *Keychain) GetManagedThreadKey(threadKeyName string) (thread.Key, error)
- func (_m *Keychain) GetStoredKeyPairInLibP2PFormat() (crypto.PrivKey, crypto.PubKey, error)
- func (_m *Keychain) GetStoredMnemonic() (string, error)
- func (_m *Keychain) GetStoredPublicKey() (crypto.PubKey, error)
- func (_m *Keychain) ImportExistingKeyPair(priv crypto.PrivKey, mnemonic string) error
- func (_m *Keychain) Sign(_a0 []byte) ([]byte, error)
- type Keyring
- type Mailbox
- func (_m *Mailbox) Identity() thread.Identity
- func (_m *Mailbox) ListInboxMessages(ctx context.Context, opts ...client.ListOption) ([]client.Message, error)
- func (_m *Mailbox) SendMessage(ctx context.Context, to thread.PubKey, body []byte) (client.Message, error)
- func (_m *Mailbox) WatchInbox(ctx context.Context, mevents chan<- local.MailboxEvent, offline bool) (<-chan cmd.WatchState, error)
- type Model
- func (_m *Model) BucketBackupToggle(ctx context.Context, bucketSlug string, backup bool) (*model.BucketSchema, error)
- func (_m *Model) CreateBucket(ctx context.Context, bucketSlug string, dbID string) (*model.BucketSchema, error)
- func (_m *Model) CreateMirrorBucket(ctx context.Context, bucketSlug string, mirrorBucket *model.MirrorBucketSchema) (*model.BucketSchema, error)
- func (_m *Model) CreateMirrorFile(ctx context.Context, mirrorFile *domain.MirrorFile) (*model.MirrorFileSchema, error)
- func (_m *Model) CreateReceivedFileViaInvitation(ctx context.Context, file domain.FullPath, invitationId string, accepted bool, ...) (*model.ReceivedFileSchema, error)
- func (_m *Model) CreateReceivedFileViaPublicLink(ctx context.Context, ipfsHash string, password string, filename string, ...) (*model.ReceivedFileSchema, error)
- func (_m *Model) CreateSentFileViaInvitation(ctx context.Context, file domain.FullPath, invitationId string, key []byte) (*model.SentFileSchema, error)
- func (_m *Model) CreateSharedPublicKey(ctx context.Context, pubKey string) (*model.SharedPublicKeySchema, error)
- func (_m *Model) DeleteSearchIndexRecord(ctx context.Context, name string, path string, bucketSlug string, dbId string) error
- func (_m *Model) FindBucket(ctx context.Context, bucketSlug string) (*model.BucketSchema, error)
- func (_m *Model) FindMirrorFileByPathAndBucketSlug(ctx context.Context, path string, bucketSlug string) (*model.MirrorFileSchema, error)
- func (_m *Model) FindMirrorFileByPaths(ctx context.Context, paths []string) (map[string]*model.MirrorFileSchema, error)
- func (_m *Model) FindPublicLinkReceivedFile(ctx context.Context, ipfsHash string) (*model.ReceivedFileSchema, error)
- func (_m *Model) FindReceivedFile(ctx context.Context, remoteDbID string, bucket string, path string) (*model.ReceivedFileSchema, error)
- func (_m *Model) FindReceivedFilesByIds(ctx context.Context, ids []string) ([]*model.ReceivedFileSchema, error)
- func (_m *Model) FindSentFile(ctx context.Context, remoteDbID string, bucket string, path string) (*model.SentFileSchema, error)
- func (_m *Model) InitSearchIndexCollection(ctx context.Context) error
- func (_m *Model) ListBuckets(ctx context.Context) ([]*model.BucketSchema, error)
- func (_m *Model) ListReceivedFiles(ctx context.Context, accepted bool, seek string, limit int) ([]*model.ReceivedFileSchema, error)
- func (_m *Model) ListReceivedPublicFiles(ctx context.Context, cidHash string, accepted bool) ([]*model.ReceivedFileSchema, error)
- func (_m *Model) ListSentFiles(ctx context.Context, seek string, limit int) ([]*model.SentFileSchema, error)
- func (_m *Model) ListSharedPublicKeys(ctx context.Context) ([]*model.SharedPublicKeySchema, error)
- func (_m *Model) QuerySearchIndex(ctx context.Context, query string) ([]*model.SearchIndexRecord, error)
- func (_m *Model) UpdateMirrorFile(ctx context.Context, mirrorFile *model.MirrorFileSchema) (*model.MirrorFileSchema, error)
- func (_m *Model) UpdateSearchIndexRecord(ctx context.Context, name string, path string, itemType model.SearchItemType, ...) (*model.SearchIndexRecord, error)
- func (_m *Model) UpsertBucket(ctx context.Context, bucketSlug string, dbID string) (*model.BucketSchema, error)
- type Path
- type SpaceEnv
- type Store
- func (_m *Store) Close() error
- func (_m *Store) DropAll() error
- func (_m *Store) Get(key []byte) ([]byte, error)
- func (_m *Store) IsOpen() bool
- func (_m *Store) KeysWithPrefix(prefix string) ([]string, error)
- func (_m *Store) Open() error
- func (_m *Store) Remove(key []byte) error
- func (_m *Store) Set(key []byte, value []byte) error
- func (_m *Store) SetString(key string, value string) error
- type Syncer
- type TextileNotifier
- type UsersClient
- func (_m *UsersClient) ListInboxMessages(ctx context.Context, opts ...client.ListOption) ([]client.Message, error)
- func (_m *UsersClient) SendMessage(ctx context.Context, from thread.Identity, to thread.PubKey, body []byte) (client.Message, error)
- func (_m *UsersClient) SetupMailbox(ctx context.Context) (thread.ID, error)
- type Vault
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
Bucket is an autogenerated mock type for the Bucket type
func (*Bucket) CreateDirectory ¶
func (_m *Bucket) CreateDirectory(ctx context.Context, _a1 string) (path.Resolved, path.Path, error)
CreateDirectory provides a mock function with given fields: ctx, _a1
func (*Bucket) DeleteDirOrFile ¶
DeleteDirOrFile provides a mock function with given fields: ctx, _a1
func (*Bucket) DownloadFile ¶ added in v0.0.30
func (_m *Bucket) DownloadFile(ctx context.Context, _a1 string, reader io.Reader) (path.Resolved, path.Path, error)
DownloadFile provides a mock function with given fields: ctx, _a1, reader
func (*Bucket) Each ¶ added in v0.0.28
func (_m *Bucket) Each(ctx context.Context, _a1 string, iterator func(context.Context, *bucket.Bucket, string) error, withRecursive bool) (int, error)
Each provides a mock function with given fields: ctx, _a1, iterator, withRecursive
func (*Bucket) FileExists ¶
FileExists provides a mock function with given fields: ctx, _a1
func (*Bucket) GetClient ¶ added in v0.0.22
func (_m *Bucket) GetClient() bucket.BucketsClient
GetClient provides a mock function with given fields:
func (*Bucket) GetContext ¶
GetContext provides a mock function with given fields: ctx
func (*Bucket) GetData ¶
func (_m *Bucket) GetData() bucket.BucketData
GetData provides a mock function with given fields:
func (*Bucket) GetThreadID ¶ added in v0.0.13
GetThreadID provides a mock function with given fields: ctx
func (*Bucket) ItemsCount ¶ added in v0.0.23
ItemsCount provides a mock function with given fields: ctx, _a1, withRecursive
func (*Bucket) ListDirectory ¶
ListDirectory provides a mock function with given fields: ctx, _a1
type Client ¶
Client is an autogenerated mock type for the Client type
func (*Client) AcceptSharedFileLink ¶ added in v0.0.26
func (_m *Client) AcceptSharedFileLink(ctx context.Context, cidHash string, password string, filename string, fileSize string) (*domain.SharedDirEntry, error)
AcceptSharedFileLink provides a mock function with given fields: ctx, cidHash, password, filename, fileSize
func (*Client) AcceptSharedFilesInvitation ¶ added in v0.0.13
func (_m *Client) AcceptSharedFilesInvitation(ctx context.Context, invitation domain.Invitation) (domain.Invitation, error)
AcceptSharedFilesInvitation provides a mock function with given fields: ctx, invitation
func (*Client) AttachMailboxNotifier ¶ added in v0.0.13
func (_m *Client) AttachMailboxNotifier(notif textile.GrpcMailboxNotifier)
AttachMailboxNotifier provides a mock function with given fields: notif
func (*Client) AttachSynchronizerNotifier ¶ added in v0.0.23
func (_m *Client) AttachSynchronizerNotifier(notif sync.EventNotifier)
AttachSynchronizerNotifier provides a mock function with given fields: notif
func (*Client) BucketBackupRestore ¶ added in v0.0.28
BucketBackupRestore provides a mock function with given fields: ctx, bucketSlug
func (*Client) CreateBucket ¶
CreateBucket provides a mock function with given fields: ctx, bucketSlug
func (*Client) DeleteAccount ¶ added in v0.0.30
DeleteAccount provides a mock function with given fields: ctx
func (*Client) DisableSync ¶ added in v0.0.34
func (_m *Client) DisableSync()
DisableSync provides a mock function with given fields:
func (*Client) DownloadPublicGatewayItem ¶ added in v0.0.19
func (_m *Client) DownloadPublicGatewayItem(ctx context.Context, _a1 cid.Cid) (io.ReadCloser, error)
DownloadPublicGatewayItem provides a mock function with given fields: ctx, _a1
func (*Client) GetBucket ¶
func (_m *Client) GetBucket(ctx context.Context, slug string, remoteFile *textile.GetBucketForRemoteFileInput) (textile.Bucket, error)
GetBucket provides a mock function with given fields: ctx, slug, remoteFile
func (*Client) GetDefaultBucket ¶
GetDefaultBucket provides a mock function with given fields: ctx
func (*Client) GetFailedHealthchecks ¶ added in v0.0.19
GetFailedHealthchecks provides a mock function with given fields:
func (*Client) GetMailAsNotifications ¶ added in v0.0.13
func (_m *Client) GetMailAsNotifications(ctx context.Context, seek string, limit int) ([]*domain.Notification, error)
GetMailAsNotifications provides a mock function with given fields: ctx, seek, limit
func (*Client) GetPathAccessRoles ¶ added in v0.0.19
func (_m *Client) GetPathAccessRoles(ctx context.Context, b textile.Bucket, path string) ([]domain.Member, error)
GetPathAccessRoles provides a mock function with given fields: ctx, b, path
func (*Client) GetPublicReceivedFile ¶ added in v0.0.26
func (_m *Client) GetPublicReceivedFile(ctx context.Context, cidHash string, accepted bool) (*domain.SharedDirEntry, string, error)
GetPublicReceivedFile provides a mock function with given fields: ctx, cidHash, accepted
func (*Client) GetPublicShareBucket ¶ added in v0.0.19
GetPublicShareBucket provides a mock function with given fields: ctx
func (*Client) GetReceivedFiles ¶ added in v0.0.14
func (_m *Client) GetReceivedFiles(ctx context.Context, accepted bool, seek string, limit int) ([]*domain.SharedDirEntry, string, error)
GetReceivedFiles provides a mock function with given fields: ctx, accepted, seek, limit
func (*Client) GetSentFiles ¶ added in v0.0.34
func (_m *Client) GetSentFiles(ctx context.Context, seek string, limit int) ([]*domain.SharedDirEntry, string, error)
GetSentFiles provides a mock function with given fields: ctx, seek, limit
func (*Client) GetThreadsConnection ¶
GetThreadsConnection provides a mock function with given fields:
func (*Client) IsInitialized ¶ added in v0.0.19
IsInitialized provides a mock function with given fields:
func (*Client) JoinBucket ¶ added in v0.0.8
JoinBucket provides a mock function with given fields: ctx, slug, ti
func (*Client) ListBuckets ¶
ListBuckets provides a mock function with given fields: ctx
func (*Client) Listen ¶ added in v0.0.30
func (_m *Client) Listen(ctx context.Context, dbID string, threadName string) (<-chan client.ListenEvent, error)
Listen provides a mock function with given fields: ctx, dbID, threadName
func (*Client) RejectSharedFilesInvitation ¶ added in v0.0.13
func (_m *Client) RejectSharedFilesInvitation(ctx context.Context, invitation domain.Invitation) (domain.Invitation, error)
RejectSharedFilesInvitation provides a mock function with given fields: ctx, invitation
func (*Client) RemoveKeys ¶ added in v0.0.13
RemoveKeys provides a mock function with given fields: ctx
func (*Client) RestoreDB ¶ added in v0.0.30
RestoreDB provides a mock function with given fields: ctx
func (*Client) SendMessage ¶ added in v0.0.13
func (_m *Client) SendMessage(ctx context.Context, recipient crypto.PubKey, body []byte) (*usersclient.Message, error)
SendMessage provides a mock function with given fields: ctx, recipient, body
func (*Client) ShareBucket ¶ added in v0.0.8
ShareBucket provides a mock function with given fields: ctx, bucketSlug
func (*Client) ShareFilesViaPublicKey ¶ added in v0.0.13
func (_m *Client) ShareFilesViaPublicKey(ctx context.Context, paths []domain.FullPath, pubkeys []crypto.PubKey, keys [][]byte) error
ShareFilesViaPublicKey provides a mock function with given fields: ctx, paths, pubkeys, keys
func (*Client) ToggleBucketBackup ¶ added in v0.0.13
func (_m *Client) ToggleBucketBackup(ctx context.Context, bucketSlug string, bucketBackup bool) (bool, error)
ToggleBucketBackup provides a mock function with given fields: ctx, bucketSlug, bucketBackup
func (*Client) WaitForHealthy ¶ added in v0.0.19
WaitForHealthy provides a mock function with given fields:
func (*Client) WaitForInitialized ¶ added in v0.0.19
WaitForInitialized provides a mock function with given fields:
func (*Client) WaitForReady ¶
WaitForReady provides a mock function with given fields:
type Config ¶
Config is an autogenerated mock type for the Config type
func (*Config) GetBool ¶ added in v0.0.13
GetBool provides a mock function with given fields: key, defaultValue
type FilesSearchEngine ¶ added in v0.0.33
FilesSearchEngine is an autogenerated mock type for the FilesSearchEngine type
func (*FilesSearchEngine) DeleteFileData ¶ added in v0.0.33
func (_m *FilesSearchEngine) DeleteFileData(ctx context.Context, data *search.DeleteIndexRecord) error
DeleteFileData provides a mock function with given fields: ctx, data
func (*FilesSearchEngine) InsertFileData ¶ added in v0.0.33
func (_m *FilesSearchEngine) InsertFileData(ctx context.Context, data *search.InsertIndexRecord) (*search.IndexRecord, error)
InsertFileData provides a mock function with given fields: ctx, data
func (*FilesSearchEngine) QueryFileData ¶ added in v0.0.33
func (_m *FilesSearchEngine) QueryFileData(ctx context.Context, query string, limit int) ([]*search.IndexRecord, error)
QueryFileData provides a mock function with given fields: ctx, query, limit
func (*FilesSearchEngine) Start ¶ added in v0.0.33
func (_m *FilesSearchEngine) Start() error
Start provides a mock function with given fields:
type HubAuth ¶ added in v0.0.13
HubAuth is an autogenerated mock type for the HubAuth type
func (*HubAuth) ClearCache ¶ added in v0.0.13
ClearCache provides a mock function with given fields:
func (*HubAuth) GetHubContext ¶ added in v0.0.13
GetHubContext provides a mock function with given fields: ctx
func (*HubAuth) GetTokensWithCache ¶ added in v0.0.13
GetTokensWithCache provides a mock function with given fields: ctx
type Keychain ¶
Keychain is an autogenerated mock type for the Keychain type
func (*Keychain) DeleteKeypair ¶ added in v0.0.13
DeleteKeypair provides a mock function with given fields:
func (*Keychain) GenerateKeyFromMnemonic ¶ added in v0.0.13
func (_m *Keychain) GenerateKeyFromMnemonic(_a0 ...keychain.GenerateKeyFromMnemonicOpts) (string, error)
GenerateKeyFromMnemonic provides a mock function with given fields: _a0
func (*Keychain) GenerateKeyPair ¶
GenerateKeyPair provides a mock function with given fields:
func (*Keychain) GenerateKeyPairWithForce ¶
GenerateKeyPairWithForce provides a mock function with given fields:
func (*Keychain) GetManagedThreadKey ¶ added in v0.0.19
GetManagedThreadKey provides a mock function with given fields: threadKeyName
func (*Keychain) GetStoredKeyPairInLibP2PFormat ¶
GetStoredKeyPairInLibP2PFormat provides a mock function with given fields:
func (*Keychain) GetStoredMnemonic ¶ added in v0.0.13
GetStoredMnemonic provides a mock function with given fields:
func (*Keychain) GetStoredPublicKey ¶ added in v0.0.13
GetStoredPublicKey provides a mock function with given fields:
func (*Keychain) ImportExistingKeyPair ¶ added in v0.0.13
ImportExistingKeyPair provides a mock function with given fields: priv, mnemonic
type Keyring ¶ added in v0.0.13
Keyring is an autogenerated mock type for the Keyring type
func (*Keyring) GetMetadata ¶ added in v0.0.13
GetMetadata provides a mock function with given fields: _a0
type Mailbox ¶ added in v0.0.13
Mailbox is an autogenerated mock type for the Mailbox type
func (*Mailbox) ListInboxMessages ¶ added in v0.0.13
func (_m *Mailbox) ListInboxMessages(ctx context.Context, opts ...client.ListOption) ([]client.Message, error)
ListInboxMessages provides a mock function with given fields: ctx, opts
func (*Mailbox) SendMessage ¶ added in v0.0.13
func (_m *Mailbox) SendMessage(ctx context.Context, to thread.PubKey, body []byte) (client.Message, error)
SendMessage provides a mock function with given fields: ctx, to, body
func (*Mailbox) WatchInbox ¶ added in v0.0.13
func (_m *Mailbox) WatchInbox(ctx context.Context, mevents chan<- local.MailboxEvent, offline bool) (<-chan cmd.WatchState, error)
WatchInbox provides a mock function with given fields: ctx, mevents, offline
type Model ¶ added in v0.0.19
Model is an autogenerated mock type for the Model type
func (*Model) BucketBackupToggle ¶ added in v0.0.19
func (_m *Model) BucketBackupToggle(ctx context.Context, bucketSlug string, backup bool) (*model.BucketSchema, error)
BucketBackupToggle provides a mock function with given fields: ctx, bucketSlug, backup
func (*Model) CreateBucket ¶ added in v0.0.19
func (_m *Model) CreateBucket(ctx context.Context, bucketSlug string, dbID string) (*model.BucketSchema, error)
CreateBucket provides a mock function with given fields: ctx, bucketSlug, dbID
func (*Model) CreateMirrorBucket ¶ added in v0.0.19
func (_m *Model) CreateMirrorBucket(ctx context.Context, bucketSlug string, mirrorBucket *model.MirrorBucketSchema) (*model.BucketSchema, error)
CreateMirrorBucket provides a mock function with given fields: ctx, bucketSlug, mirrorBucket
func (*Model) CreateMirrorFile ¶ added in v0.0.19
func (_m *Model) CreateMirrorFile(ctx context.Context, mirrorFile *domain.MirrorFile) (*model.MirrorFileSchema, error)
CreateMirrorFile provides a mock function with given fields: ctx, mirrorFile
func (*Model) CreateReceivedFileViaInvitation ¶ added in v0.0.26
func (_m *Model) CreateReceivedFileViaInvitation(ctx context.Context, file domain.FullPath, invitationId string, accepted bool, key []byte) (*model.ReceivedFileSchema, error)
CreateReceivedFileViaInvitation provides a mock function with given fields: ctx, file, invitationId, accepted, key
func (*Model) CreateReceivedFileViaPublicLink ¶ added in v0.0.26
func (_m *Model) CreateReceivedFileViaPublicLink(ctx context.Context, ipfsHash string, password string, filename string, filesize string, accepted bool) (*model.ReceivedFileSchema, error)
CreateReceivedFileViaPublicLink provides a mock function with given fields: ctx, ipfsHash, password, filename, filesize, accepted
func (*Model) CreateSentFileViaInvitation ¶ added in v0.0.34
func (_m *Model) CreateSentFileViaInvitation(ctx context.Context, file domain.FullPath, invitationId string, key []byte) (*model.SentFileSchema, error)
CreateSentFileViaInvitation provides a mock function with given fields: ctx, file, invitationId, key
func (*Model) CreateSharedPublicKey ¶ added in v0.0.19
func (_m *Model) CreateSharedPublicKey(ctx context.Context, pubKey string) (*model.SharedPublicKeySchema, error)
CreateSharedPublicKey provides a mock function with given fields: ctx, pubKey
func (*Model) DeleteSearchIndexRecord ¶ added in v0.0.30
func (_m *Model) DeleteSearchIndexRecord(ctx context.Context, name string, path string, bucketSlug string, dbId string) error
DeleteSearchIndexRecord provides a mock function with given fields: ctx, name, path, bucketSlug, dbId
func (*Model) FindBucket ¶ added in v0.0.19
FindBucket provides a mock function with given fields: ctx, bucketSlug
func (*Model) FindMirrorFileByPathAndBucketSlug ¶ added in v0.0.19
func (_m *Model) FindMirrorFileByPathAndBucketSlug(ctx context.Context, path string, bucketSlug string) (*model.MirrorFileSchema, error)
FindMirrorFileByPathAndBucketSlug provides a mock function with given fields: ctx, path, bucketSlug
func (*Model) FindMirrorFileByPaths ¶ added in v0.0.19
func (_m *Model) FindMirrorFileByPaths(ctx context.Context, paths []string) (map[string]*model.MirrorFileSchema, error)
FindMirrorFileByPaths provides a mock function with given fields: ctx, paths
func (*Model) FindPublicLinkReceivedFile ¶ added in v0.0.26
func (_m *Model) FindPublicLinkReceivedFile(ctx context.Context, ipfsHash string) (*model.ReceivedFileSchema, error)
FindPublicLinkReceivedFile provides a mock function with given fields: ctx, ipfsHash
func (*Model) FindReceivedFile ¶ added in v0.0.19
func (_m *Model) FindReceivedFile(ctx context.Context, remoteDbID string, bucket string, path string) (*model.ReceivedFileSchema, error)
FindReceivedFile provides a mock function with given fields: ctx, remoteDbID, bucket, path
func (*Model) FindReceivedFilesByIds ¶ added in v0.0.19
func (_m *Model) FindReceivedFilesByIds(ctx context.Context, ids []string) ([]*model.ReceivedFileSchema, error)
FindReceivedFilesByIds provides a mock function with given fields: ctx, ids
func (*Model) FindSentFile ¶ added in v0.0.34
func (_m *Model) FindSentFile(ctx context.Context, remoteDbID string, bucket string, path string) (*model.SentFileSchema, error)
FindSentFile provides a mock function with given fields: ctx, remoteDbID, bucket, path
func (*Model) InitSearchIndexCollection ¶ added in v0.0.30
InitSearchIndexCollection provides a mock function with given fields: ctx
func (*Model) ListBuckets ¶ added in v0.0.19
ListBuckets provides a mock function with given fields: ctx
func (*Model) ListReceivedFiles ¶ added in v0.0.19
func (_m *Model) ListReceivedFiles(ctx context.Context, accepted bool, seek string, limit int) ([]*model.ReceivedFileSchema, error)
ListReceivedFiles provides a mock function with given fields: ctx, accepted, seek, limit
func (*Model) ListReceivedPublicFiles ¶ added in v0.0.26
func (_m *Model) ListReceivedPublicFiles(ctx context.Context, cidHash string, accepted bool) ([]*model.ReceivedFileSchema, error)
ListReceivedPublicFiles provides a mock function with given fields: ctx, cidHash, accepted
func (*Model) ListSentFiles ¶ added in v0.0.34
func (_m *Model) ListSentFiles(ctx context.Context, seek string, limit int) ([]*model.SentFileSchema, error)
ListSentFiles provides a mock function with given fields: ctx, seek, limit
func (*Model) ListSharedPublicKeys ¶ added in v0.0.19
ListSharedPublicKeys provides a mock function with given fields: ctx
func (*Model) QuerySearchIndex ¶ added in v0.0.30
func (_m *Model) QuerySearchIndex(ctx context.Context, query string) ([]*model.SearchIndexRecord, error)
QuerySearchIndex provides a mock function with given fields: ctx, query
func (*Model) UpdateMirrorFile ¶ added in v0.0.19
func (_m *Model) UpdateMirrorFile(ctx context.Context, mirrorFile *model.MirrorFileSchema) (*model.MirrorFileSchema, error)
UpdateMirrorFile provides a mock function with given fields: ctx, mirrorFile
func (*Model) UpdateSearchIndexRecord ¶ added in v0.0.30
func (_m *Model) UpdateSearchIndexRecord(ctx context.Context, name string, path string, itemType model.SearchItemType, bucketSlug string, dbId string) (*model.SearchIndexRecord, error)
UpdateSearchIndexRecord provides a mock function with given fields: ctx, name, path, itemType, bucketSlug, dbId
func (*Model) UpsertBucket ¶ added in v0.0.19
func (_m *Model) UpsertBucket(ctx context.Context, bucketSlug string, dbID string) (*model.BucketSchema, error)
UpsertBucket provides a mock function with given fields: ctx, bucketSlug, dbID
type SpaceEnv ¶
SpaceEnv is an autogenerated mock type for the SpaceEnv type
func (*SpaceEnv) CurrentFolder ¶
CurrentFolder provides a mock function with given fields:
func (*SpaceEnv) WorkingFolder ¶
WorkingFolder provides a mock function with given fields:
type Store ¶
Store is an autogenerated mock type for the Store type
func (*Store) KeysWithPrefix ¶
KeysWithPrefix provides a mock function with given fields: prefix
type Syncer ¶
Syncer is an autogenerated mock type for the Syncer type
func (*Syncer) AddFileWatch ¶
func (_m *Syncer) AddFileWatch(addFileInfo domain.AddWatchFile) error
AddFileWatch provides a mock function with given fields: addFileInfo
type TextileNotifier ¶
TextileNotifier is an autogenerated mock type for the TextileNotifier type
func (*TextileNotifier) SendTextileEvent ¶
func (_m *TextileNotifier) SendTextileEvent(event events.TextileEvent)
SendTextileEvent provides a mock function with given fields: event
type UsersClient ¶ added in v0.0.13
UsersClient is an autogenerated mock type for the UsersClient type
func (*UsersClient) ListInboxMessages ¶ added in v0.0.13
func (_m *UsersClient) ListInboxMessages(ctx context.Context, opts ...client.ListOption) ([]client.Message, error)
ListInboxMessages provides a mock function with given fields: ctx, opts
func (*UsersClient) SendMessage ¶ added in v0.0.13
func (_m *UsersClient) SendMessage(ctx context.Context, from thread.Identity, to thread.PubKey, body []byte) (client.Message, error)
SendMessage provides a mock function with given fields: ctx, from, to, body
func (*UsersClient) SetupMailbox ¶ added in v0.0.13
SetupMailbox provides a mock function with given fields: ctx