mocks

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket added in v0.0.4

type Bucket struct {
	mock.Mock
}

Bucket is an autogenerated mock type for the Bucket type

func (*Bucket) CreateDirectory added in v0.0.4

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 added in v0.0.4

func (_m *Bucket) DeleteDirOrFile(ctx context.Context, _a1 string) (path.Resolved, error)

DeleteDirOrFile provides a mock function with given fields: ctx, _a1

func (*Bucket) DirExists added in v0.0.4

func (_m *Bucket) DirExists(ctx context.Context, _a1 string) (bool, error)

DirExists provides a mock function with given fields: ctx, _a1

func (*Bucket) FileExists added in v0.0.4

func (_m *Bucket) FileExists(ctx context.Context, _a1 string) (bool, error)

FileExists provides a mock function with given fields: ctx, _a1

func (*Bucket) GetContext added in v0.0.4

func (_m *Bucket) GetContext(ctx context.Context) (context.Context, *thread.ID, error)

GetContext provides a mock function with given fields: ctx

func (*Bucket) GetData added in v0.0.4

func (_m *Bucket) GetData() textile.BucketData

GetData provides a mock function with given fields:

func (*Bucket) GetFile added in v0.0.4

func (_m *Bucket) GetFile(ctx context.Context, _a1 string, w io.Writer) error

GetFile provides a mock function with given fields: ctx, _a1, w

func (*Bucket) Key added in v0.0.4

func (_m *Bucket) Key() string

Key provides a mock function with given fields:

func (*Bucket) ListDirectory added in v0.0.4

func (_m *Bucket) ListDirectory(ctx context.Context, _a1 string) (*textile.DirEntries, error)

ListDirectory provides a mock function with given fields: ctx, _a1

func (*Bucket) Slug added in v0.0.4

func (_m *Bucket) Slug() string

Slug provides a mock function with given fields:

func (*Bucket) UploadFile added in v0.0.4

func (_m *Bucket) UploadFile(ctx context.Context, _a1 string, reader io.Reader) (path.Resolved, path.Path, error)

UploadFile provides a mock function with given fields: ctx, _a1, reader

type Client added in v0.0.3

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) CreateBucket added in v0.0.3

func (_m *Client) CreateBucket(ctx context.Context, bucketSlug string) (textile.Bucket, error)

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

func (*Client) GetBaseThreadsContext added in v0.0.3

func (_m *Client) GetBaseThreadsContext(ctx context.Context) (context.Context, error)

GetBaseThreadsContext provides a mock function with given fields: ctx

func (*Client) GetBucket added in v0.0.4

func (_m *Client) GetBucket(ctx context.Context, slug string) (textile.Bucket, error)

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

func (*Client) GetBucketContext added in v0.0.3

func (_m *Client) GetBucketContext(ctx context.Context, bucketSlug string) (context.Context, *thread.ID, error)

GetBucketContext provides a mock function with given fields: ctx, bucketSlug

func (*Client) GetDefaultBucket added in v0.0.4

func (_m *Client) GetDefaultBucket(ctx context.Context) (textile.Bucket, error)

GetDefaultBucket provides a mock function with given fields: ctx

func (*Client) GetLocalBucketContext added in v0.0.6

func (_m *Client) GetLocalBucketContext(ctx context.Context, bucketSlug string) (context.Context, *thread.ID, error)

GetLocalBucketContext provides a mock function with given fields: ctx, bucketSlug

func (*Client) GetThreadsConnection added in v0.0.3

func (_m *Client) GetThreadsConnection() (*client.Client, error)

GetThreadsConnection provides a mock function with given fields:

func (*Client) IsRunning added in v0.0.4

func (_m *Client) IsRunning() bool

IsRunning provides a mock function with given fields:

func (*Client) ListBuckets added in v0.0.3

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

ListBuckets provides a mock function with given fields: ctx

func (*Client) Shutdown added in v0.0.6

func (_m *Client) Shutdown() error

Shutdown provides a mock function with given fields:

func (*Client) StartAndBootstrap added in v0.0.3

func (_m *Client) StartAndBootstrap(ctx context.Context, cfg config.Config) error

StartAndBootstrap provides a mock function with given fields: ctx, cfg

func (*Client) WaitForReady added in v0.0.3

func (_m *Client) WaitForReady() chan bool

WaitForReady provides a mock function with given fields:

type Config

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func (*Config) GetInt

func (_m *Config) GetInt(key string, defaultValue interface{}) int

GetInt provides a mock function with given fields: key, defaultValue

func (*Config) GetString

func (_m *Config) GetString(key string, defaultValue interface{}) string

GetString provides a mock function with given fields: key, defaultValue

type Keychain added in v0.0.6

type Keychain struct {
	mock.Mock
}

Keychain is an autogenerated mock type for the Keychain type

func (*Keychain) GenerateKeyPair added in v0.0.6

func (_m *Keychain) GenerateKeyPair() ([]byte, []byte, error)

GenerateKeyPair provides a mock function with given fields:

func (*Keychain) GenerateKeyPairWithForce added in v0.0.6

func (_m *Keychain) GenerateKeyPairWithForce() ([]byte, []byte, error)

GenerateKeyPairWithForce provides a mock function with given fields:

func (*Keychain) GetStoredKeyPairInLibP2PFormat added in v0.0.6

func (_m *Keychain) GetStoredKeyPairInLibP2PFormat() (crypto.PrivKey, crypto.PubKey, error)

GetStoredKeyPairInLibP2PFormat provides a mock function with given fields:

func (*Keychain) Sign added in v0.0.6

func (_m *Keychain) Sign(_a0 []byte) ([]byte, error)

Sign provides a mock function with given fields: _a0

type Path added in v0.0.3

type Path struct {
	mock.Mock
}

func (Path) IsValid added in v0.0.3

func (m Path) IsValid() error

func (Path) Mutable added in v0.0.3

func (m Path) Mutable() bool

func (Path) Namespace added in v0.0.3

func (m Path) Namespace() string

func (Path) String added in v0.0.3

func (m Path) String() string

type SpaceEnv added in v0.0.4

type SpaceEnv struct {
	mock.Mock
}

SpaceEnv is an autogenerated mock type for the SpaceEnv type

func (*SpaceEnv) CurrentFolder added in v0.0.4

func (_m *SpaceEnv) CurrentFolder() (string, error)

CurrentFolder provides a mock function with given fields:

func (*SpaceEnv) LogLevel added in v0.0.4

func (_m *SpaceEnv) LogLevel() string

LogLevel provides a mock function with given fields:

func (*SpaceEnv) WorkingFolder added in v0.0.4

func (_m *SpaceEnv) WorkingFolder() string

WorkingFolder provides a mock function with given fields:

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func (*Store) Close

func (_m *Store) Close() error

Close provides a mock function with given fields:

func (*Store) Get

func (_m *Store) Get(key []byte) ([]byte, error)

Get provides a mock function with given fields: key

func (*Store) IsOpen

func (_m *Store) IsOpen() bool

IsOpen provides a mock function with given fields:

func (*Store) KeysWithPrefix added in v0.0.4

func (_m *Store) KeysWithPrefix(prefix string) ([]string, error)

KeysWithPrefix provides a mock function with given fields: prefix

func (*Store) Open

func (_m *Store) Open() error

Open provides a mock function with given fields:

func (*Store) Remove added in v0.0.4

func (_m *Store) Remove(key []byte) error

Remove provides a mock function with given fields: key

func (*Store) Set

func (_m *Store) Set(key []byte, value []byte) error

Set provides a mock function with given fields: key, value

func (*Store) SetString

func (_m *Store) SetString(key string, value string) error

SetString provides a mock function with given fields: key, value

type Syncer added in v0.0.4

type Syncer struct {
	mock.Mock
}

Syncer is an autogenerated mock type for the Syncer type

func (*Syncer) AddFileWatch added in v0.0.4

func (_m *Syncer) AddFileWatch(addFileInfo domain.AddWatchFile) error

AddFileWatch provides a mock function with given fields: addFileInfo

func (*Syncer) GetOpenFilePath added in v0.0.4

func (_m *Syncer) GetOpenFilePath(bucketSlug string, bucketPath string) (string, bool)

GetOpenFilePath provides a mock function with given fields: bucketSlug, bucketPath

type TextileNotifier added in v0.0.3

type TextileNotifier struct {
	mock.Mock
}

TextileNotifier is an autogenerated mock type for the TextileNotifier type

func (*TextileNotifier) SendTextileEvent added in v0.0.3

func (_m *TextileNotifier) SendTextileEvent(event events.TextileEvent)

SendTextileEvent provides a mock function with given fields: event

Jump to

Keyboard shortcuts

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