Documentation ¶
Index ¶
- type Client
- func (_m *Client) CreateBucket(ctx context.Context, bucketSlug string) (*client.TextileBucketRoot, error)
- func (_m *Client) CreateDirectory(ctx context.Context, bucketKey string, _a2 string) (path.Resolved, path.Path, error)
- func (_m *Client) DeleteDirOrFile(ctx context.Context, bucketKey string, _a2 string) (path.Resolved, error)
- func (_m *Client) FileExists(ctx context.Context, key string, _a2 string, r io.Reader) (bool, error)
- func (_m *Client) FolderExists(ctx context.Context, key string, _a2 string) (bool, error)
- func (_m *Client) GetBaseThreadsContext(ctx context.Context) (context.Context, error)
- func (_m *Client) GetBucketContext(ctx context.Context, bucketSlug string) (context.Context, *thread.ID, error)
- func (_m *Client) GetFile(ctx context.Context, bucketKey string, _a2 string, w io.Writer) error
- func (_m *Client) GetThreadsConnection() (*apiclient.Client, error)
- func (_m *Client) ListBuckets(ctx context.Context) ([]*client.TextileBucketRoot, error)
- func (_m *Client) ListDirectory(ctx context.Context, bucketKey string, _a2 string) (*client.TextileDirEntries, error)
- func (_m *Client) Start() error
- func (_m *Client) StartAndBootstrap(ctx context.Context) error
- func (_m *Client) Stop() error
- func (_m *Client) UploadFile(ctx context.Context, bucketKey string, _a2 string, reader io.Reader) (path.Resolved, path.Path, error)
- func (_m *Client) WaitForReady() chan bool
- type Config
- type Path
- type Store
- type TextileNotifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.0.3
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
FolderExists provides a mock function with given fields: ctx, key, _a2
func (*Client) GetBaseThreadsContext ¶ added in v0.0.3
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
GetFile provides a mock function with given fields: ctx, bucketKey, _a2, w
func (*Client) GetThreadsConnection ¶ added in v0.0.3
GetThreadsConnection provides a mock function with given fields:
func (*Client) ListBuckets ¶ added in v0.0.3
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) StartAndBootstrap ¶ added in v0.0.3
StartAndBootstrap provides a mock function with given fields: ctx
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
WaitForReady provides a mock function with given fields:
type Config ¶
Config is an autogenerated mock type for the Config type
type Store ¶
Store is an autogenerated mock type for the Store type
type TextileNotifier ¶ added in v0.0.3
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