mocks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) (*client.TextileBucketRoot, error)

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

func (*Client) CreateDirectory added in v0.0.3

func (_m *Client) CreateDirectory(ctx context.Context, bucketKey string, _a2 string) (path.Resolved, path.Path, error)

CreateDirectory provides a mock function with given fields: ctx, bucketKey, _a2

func (*Client) DeleteDirOrFile added in v0.0.3

func (_m *Client) DeleteDirOrFile(ctx context.Context, bucketKey string, _a2 string) (path.Resolved, error)

DeleteDirOrFile provides a mock function with given fields: ctx, bucketKey, _a2

func (*Client) FileExists added in v0.0.3

func (_m *Client) FileExists(ctx context.Context, key string, _a2 string, r io.Reader) (bool, error)

FileExists provides a mock function with given fields: ctx, key, _a2, r

func (*Client) FolderExists added in v0.0.3

func (_m *Client) FolderExists(ctx context.Context, key string, _a2 string) (bool, error)

FolderExists provides a mock function with given fields: ctx, key, _a2

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) 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) GetFile added in v0.0.3

func (_m *Client) GetFile(ctx context.Context, bucketKey string, _a2 string, w io.Writer) error

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

func (*Client) GetThreadsConnection added in v0.0.3

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

GetThreadsConnection provides a mock function with given fields:

func (*Client) ListBuckets added in v0.0.3

func (_m *Client) ListBuckets(ctx context.Context) ([]*client.TextileBucketRoot, error)

ListBuckets provides a mock function with given fields: ctx

func (*Client) ListDirectory added in v0.0.3

func (_m *Client) ListDirectory(ctx context.Context, bucketKey string, _a2 string) (*client.TextileDirEntries, error)

ListDirectory provides a mock function with given fields: ctx, bucketKey, _a2

func (*Client) Start added in v0.0.3

func (_m *Client) Start() error

Start provides a mock function with given fields:

func (*Client) StartAndBootstrap added in v0.0.3

func (_m *Client) StartAndBootstrap(ctx context.Context) error

StartAndBootstrap provides a mock function with given fields: ctx

func (*Client) Stop added in v0.0.3

func (_m *Client) Stop() error

Stop provides a mock function with given fields:

func (*Client) UploadFile added in v0.0.3

func (_m *Client) UploadFile(ctx context.Context, bucketKey string, _a2 string, reader io.Reader) (path.Resolved, path.Path, error)

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

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 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 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) Open

func (_m *Store) Open() error

Open provides a mock function with given fields:

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