mocks

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	mock.Mock
}

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

func (_m *Service) AddRecentlySharedPublicKeys(ctx context.Context, pubkeys []crypto.PubKey) error

AddRecentlySharedPublicKeys provides a mock function with given fields: ctx, pubkeys

func (*Service) BackupKeysByPassphrase

func (_m *Service) BackupKeysByPassphrase(ctx context.Context, uuid string, pass string) error

BackupKeysByPassphrase provides a mock function with given fields: ctx, uuid, pass

func (*Service) CreateBucket

func (_m *Service) CreateBucket(ctx context.Context, slug string) (textile.Bucket, error)

CreateBucket provides a mock function with given fields: ctx, slug

func (*Service) CreateFolder

func (_m *Service) CreateFolder(ctx context.Context, path string, bucketName string) error

CreateFolder provides a mock function with given fields: ctx, path, bucketName

func (*Service) CreateIdentity

func (_m *Service) CreateIdentity(ctx context.Context, username string) (*domain.Identity, error)

CreateIdentity provides a mock function with given fields: ctx, username

func (*Service) CreateLocalKeysBackup

func (_m *Service) CreateLocalKeysBackup(ctx context.Context, pathToKeyBackup string) error

CreateLocalKeysBackup provides a mock function with given fields: ctx, pathToKeyBackup

func (*Service) DeleteKeypair

func (_m *Service) DeleteKeypair(ctx context.Context) error

DeleteKeypair provides a mock function with given fields: ctx

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 (_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

func (_m *Service) GenerateKeyPair(ctx context.Context, useForce bool) (string, error)

GenerateKeyPair provides a mock function with given fields: ctx, useForce

func (*Service) GetAPISessionTokens

func (_m *Service) GetAPISessionTokens(ctx context.Context) (*domain.APISessionTokens, error)

GetAPISessionTokens provides a mock function with given fields: ctx

func (*Service) GetConfig

func (_m *Service) GetConfig(ctx context.Context) domain.AppConfig

GetConfig provides a mock function with given fields: ctx

func (*Service) GetHubAuthToken

func (_m *Service) GetHubAuthToken(ctx context.Context) (string, error)

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

func (_m *Service) GetMnemonic(ctx context.Context) (string, error)

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

func (_m *Service) GetNotificationsLastSeenAt() (int64, error)

GetNotificationsLastSeenAt provides a mock function with given fields:

func (*Service) GetPublicKey

func (_m *Service) GetPublicKey(ctx context.Context) (string, error)

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

func (_m *Service) ListBuckets(ctx context.Context) ([]textile.Bucket, error)

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

func (_m *Service) RecentlySharedPublicKeys(ctx context.Context) ([]crypto.PubKey, error)

RecentlySharedPublicKeys provides a mock function with given fields: ctx

func (*Service) RecoverKeysByLocalBackup

func (_m *Service) RecoverKeysByLocalBackup(ctx context.Context, pathToKeyBackup string) error

RecoverKeysByLocalBackup provides a mock function with given fields: ctx, pathToKeyBackup

func (*Service) RecoverKeysByPassphrase

func (_m *Service) RecoverKeysByPassphrase(ctx context.Context, uuid string, pass string) error

RecoverKeysByPassphrase provides a mock function with given fields: ctx, uuid, pass

func (*Service) RegisterSyncer

func (_m *Service) RegisterSyncer(sync services.Syncer)

RegisterSyncer provides a mock function with given fields: sync

func (*Service) RestoreKeyPairFromMnemonic

func (_m *Service) RestoreKeyPairFromMnemonic(ctx context.Context, mnemonic string) error

RestoreKeyPairFromMnemonic provides a mock function with given fields: ctx, mnemonic

func (*Service) SetNotificationsLastSeenAt

func (_m *Service) SetNotificationsLastSeenAt(timestamp int64) error

SetNotificationsLastSeenAt provides a mock function with given fields: timestamp

func (*Service) ShareBucket

func (_m *Service) ShareBucket(ctx context.Context, slug string) (*domain.ThreadInfo, error)

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

func (_m *Service) TestPassphrase(ctx context.Context, uuid string, pass string) error

TestPassphrase provides a mock function with given fields: ctx, uuid, pass

func (*Service) ToggleBucketBackup

func (_m *Service) ToggleBucketBackup(ctx context.Context, bucketName string, bucketBackup bool) error

ToggleBucketBackup provides a mock function with given fields: ctx, bucketName, bucketBackup

Jump to

Keyboard shortcuts

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