Documentation ¶
Index ¶
- type Service
- func (_m *Service) AddItemWithReader(ctx context.Context, reader io.Reader, targetPath string, bucketName string) (domain.AddItemResult, error)
- func (_m *Service) AddItems(ctx context.Context, sourcePaths []string, targetPath string, ...) (<-chan domain.AddItemResult, domain.AddItemsResponse, error)
- func (_m *Service) AddRecentlySharedPublicKeys(ctx context.Context, pubkeys []crypto.PubKey) error
- func (_m *Service) BackupKeysByPassphrase(ctx context.Context, uuid string, pass string) error
- func (_m *Service) CreateBucket(ctx context.Context, slug string) (textile.Bucket, error)
- func (_m *Service) CreateFolder(ctx context.Context, path string, bucketName string) error
- func (_m *Service) CreateIdentity(ctx context.Context, username string) (*domain.Identity, error)
- func (_m *Service) CreateLocalKeysBackup(ctx context.Context, pathToKeyBackup string) error
- func (_m *Service) DeleteKeypair(ctx context.Context) error
- func (_m *Service) GenerateFileSharingLink(ctx context.Context, encryptionPassword string, path string, bucketName string, ...) (domain.FileSharingInfo, error)
- func (_m *Service) GenerateFilesSharingLink(ctx context.Context, encryptionPassword string, paths []string, ...) (domain.FileSharingInfo, error)
- func (_m *Service) GenerateKeyPair(ctx context.Context, useForce bool) (string, error)
- func (_m *Service) GetAPISessionTokens(ctx context.Context) (*domain.APISessionTokens, error)
- func (_m *Service) GetConfig(ctx context.Context) domain.AppConfig
- func (_m *Service) GetHubAuthToken(ctx context.Context) (string, error)
- func (_m *Service) GetIdentityByUsername(ctx context.Context, username string) (*domain.Identity, error)
- func (_m *Service) GetMnemonic(ctx context.Context) (string, error)
- func (_m *Service) GetNotifications(ctx context.Context, seek string, limit int) ([]*domain.Notification, error)
- func (_m *Service) GetNotificationsLastSeenAt() (int64, error)
- func (_m *Service) GetPublicKey(ctx context.Context) (string, error)
- func (_m *Service) GetSharedWithMeFiles(ctx context.Context, seek string, limit int) ([]*domain.SharedDirEntry, string, error)
- func (_m *Service) HandleSharedFilesInvitation(ctx context.Context, invitationId string, accept bool) error
- func (_m *Service) JoinBucket(ctx context.Context, slug string, threadinfo *domain.ThreadInfo) (bool, error)
- func (_m *Service) ListBuckets(ctx context.Context) ([]textile.Bucket, error)
- func (_m *Service) ListDir(ctx context.Context, path string, bucketName string, listMembers bool) ([]domain.FileInfo, error)
- func (_m *Service) ListDirs(ctx context.Context, path string, bucketName string, listMembers bool) ([]domain.FileInfo, error)
- func (_m *Service) OpenFile(ctx context.Context, path string, bucketName string, dbID string) (domain.OpenFileInfo, error)
- func (_m *Service) OpenSharedFile(ctx context.Context, cid string, password string, filename string) (domain.OpenFileInfo, error)
- func (_m *Service) RecentlySharedPublicKeys(ctx context.Context) ([]crypto.PubKey, error)
- func (_m *Service) RecoverKeysByLocalBackup(ctx context.Context, pathToKeyBackup string) error
- func (_m *Service) RecoverKeysByPassphrase(ctx context.Context, uuid string, pass string) error
- func (_m *Service) RegisterSyncer(sync services.Syncer)
- func (_m *Service) RestoreKeyPairFromMnemonic(ctx context.Context, mnemonic string) error
- func (_m *Service) SetNotificationsLastSeenAt(timestamp int64) error
- func (_m *Service) ShareBucket(ctx context.Context, slug string) (*domain.ThreadInfo, error)
- func (_m *Service) ShareFilesViaPublicKey(ctx context.Context, paths []domain.FullPath, pubkeys []crypto.PubKey) error
- func (_m *Service) TestPassphrase(ctx context.Context, uuid string, pass string) error
- func (_m *Service) ToggleBucketBackup(ctx context.Context, bucketName string, bucketBackup bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service is an autogenerated mock type for the Service type
func (*Service) AddItemWithReader ¶
func (_m *Service) AddItemWithReader(ctx context.Context, reader io.Reader, targetPath string, bucketName string) (domain.AddItemResult, error)
AddItemWithReader provides a mock function with given fields: ctx, reader, targetPath, bucketName
func (*Service) AddItems ¶
func (_m *Service) AddItems(ctx context.Context, sourcePaths []string, targetPath string, bucketName string) (<-chan domain.AddItemResult, domain.AddItemsResponse, error)
AddItems provides a mock function with given fields: ctx, sourcePaths, targetPath, bucketName
func (*Service) AddRecentlySharedPublicKeys ¶
AddRecentlySharedPublicKeys provides a mock function with given fields: ctx, pubkeys
func (*Service) BackupKeysByPassphrase ¶
BackupKeysByPassphrase provides a mock function with given fields: ctx, uuid, pass
func (*Service) CreateBucket ¶
CreateBucket provides a mock function with given fields: ctx, slug
func (*Service) CreateFolder ¶
CreateFolder provides a mock function with given fields: ctx, path, bucketName
func (*Service) CreateIdentity ¶
CreateIdentity provides a mock function with given fields: ctx, username
func (*Service) CreateLocalKeysBackup ¶
CreateLocalKeysBackup provides a mock function with given fields: ctx, pathToKeyBackup
func (*Service) DeleteKeypair ¶
DeleteKeypair provides a mock function with given fields: ctx
func (*Service) GenerateFileSharingLink ¶
func (_m *Service) GenerateFileSharingLink(ctx context.Context, encryptionPassword string, path string, bucketName string, dbID string) (domain.FileSharingInfo, error)
GenerateFileSharingLink provides a mock function with given fields: ctx, encryptionPassword, path, bucketName, dbID
func (*Service) GenerateFilesSharingLink ¶
func (_m *Service) GenerateFilesSharingLink(ctx context.Context, encryptionPassword string, paths []string, bucketName string, dbID string) (domain.FileSharingInfo, error)
GenerateFilesSharingLink provides a mock function with given fields: ctx, encryptionPassword, paths, bucketName, dbID
func (*Service) GenerateKeyPair ¶
GenerateKeyPair provides a mock function with given fields: ctx, useForce
func (*Service) GetAPISessionTokens ¶
GetAPISessionTokens provides a mock function with given fields: ctx
func (*Service) GetHubAuthToken ¶
GetHubAuthToken provides a mock function with given fields: ctx
func (*Service) GetIdentityByUsername ¶
func (_m *Service) GetIdentityByUsername(ctx context.Context, username string) (*domain.Identity, error)
GetIdentityByUsername provides a mock function with given fields: ctx, username
func (*Service) GetMnemonic ¶
GetMnemonic provides a mock function with given fields: ctx
func (*Service) GetNotifications ¶
func (_m *Service) GetNotifications(ctx context.Context, seek string, limit int) ([]*domain.Notification, error)
GetNotifications provides a mock function with given fields: ctx, seek, limit
func (*Service) GetNotificationsLastSeenAt ¶
GetNotificationsLastSeenAt provides a mock function with given fields:
func (*Service) GetPublicKey ¶
GetPublicKey provides a mock function with given fields: ctx
func (*Service) GetSharedWithMeFiles ¶
func (_m *Service) GetSharedWithMeFiles(ctx context.Context, seek string, limit int) ([]*domain.SharedDirEntry, string, error)
GetSharedWithMeFiles provides a mock function with given fields: ctx, seek, limit
func (*Service) HandleSharedFilesInvitation ¶
func (_m *Service) HandleSharedFilesInvitation(ctx context.Context, invitationId string, accept bool) error
HandleSharedFilesInvitation provides a mock function with given fields: ctx, invitationId, accept
func (*Service) JoinBucket ¶
func (_m *Service) JoinBucket(ctx context.Context, slug string, threadinfo *domain.ThreadInfo) (bool, error)
JoinBucket provides a mock function with given fields: ctx, slug, threadinfo
func (*Service) ListBuckets ¶
ListBuckets provides a mock function with given fields: ctx
func (*Service) ListDir ¶
func (_m *Service) ListDir(ctx context.Context, path string, bucketName string, listMembers bool) ([]domain.FileInfo, error)
ListDir provides a mock function with given fields: ctx, path, bucketName, listMembers
func (*Service) ListDirs ¶
func (_m *Service) ListDirs(ctx context.Context, path string, bucketName string, listMembers bool) ([]domain.FileInfo, error)
ListDirs provides a mock function with given fields: ctx, path, bucketName, listMembers
func (*Service) OpenFile ¶
func (_m *Service) OpenFile(ctx context.Context, path string, bucketName string, dbID string) (domain.OpenFileInfo, error)
OpenFile provides a mock function with given fields: ctx, path, bucketName, dbID
func (*Service) OpenSharedFile ¶
func (_m *Service) OpenSharedFile(ctx context.Context, cid string, password string, filename string) (domain.OpenFileInfo, error)
OpenSharedFile provides a mock function with given fields: ctx, cid, password, filename
func (*Service) RecentlySharedPublicKeys ¶
RecentlySharedPublicKeys provides a mock function with given fields: ctx
func (*Service) RecoverKeysByLocalBackup ¶
RecoverKeysByLocalBackup provides a mock function with given fields: ctx, pathToKeyBackup
func (*Service) RecoverKeysByPassphrase ¶
RecoverKeysByPassphrase provides a mock function with given fields: ctx, uuid, pass
func (*Service) RegisterSyncer ¶
RegisterSyncer provides a mock function with given fields: sync
func (*Service) RestoreKeyPairFromMnemonic ¶
RestoreKeyPairFromMnemonic provides a mock function with given fields: ctx, mnemonic
func (*Service) SetNotificationsLastSeenAt ¶
SetNotificationsLastSeenAt provides a mock function with given fields: timestamp
func (*Service) ShareBucket ¶
ShareBucket provides a mock function with given fields: ctx, slug
func (*Service) ShareFilesViaPublicKey ¶
func (_m *Service) ShareFilesViaPublicKey(ctx context.Context, paths []domain.FullPath, pubkeys []crypto.PubKey) error
ShareFilesViaPublicKey provides a mock function with given fields: ctx, paths, pubkeys
func (*Service) TestPassphrase ¶
TestPassphrase provides a mock function with given fields: ctx, uuid, pass