Documentation ¶
Index ¶
- type Bucket
- func (_m *Bucket) CreateDirectory(ctx context.Context, _a1 string) (path.Resolved, path.Path, error)
- func (_m *Bucket) DeleteDirOrFile(ctx context.Context, _a1 string) (path.Resolved, error)
- func (_m *Bucket) DirExists(ctx context.Context, _a1 string) (bool, error)
- func (_m *Bucket) FileExists(ctx context.Context, _a1 string) (bool, error)
- func (_m *Bucket) GetContext(ctx context.Context) (context.Context, *thread.ID, error)
- func (_m *Bucket) GetData() textile.BucketData
- func (_m *Bucket) GetFile(ctx context.Context, _a1 string, w io.Writer) error
- func (_m *Bucket) Key() string
- func (_m *Bucket) ListDirectory(ctx context.Context, _a1 string) (*textile.DirEntries, error)
- func (_m *Bucket) Slug() string
- func (_m *Bucket) UploadFile(ctx context.Context, _a1 string, reader io.Reader) (path.Resolved, path.Path, error)
- type Client
- func (_m *Client) CreateBucket(ctx context.Context, bucketSlug string) (textile.Bucket, error)
- func (_m *Client) GetBaseThreadsContext(ctx context.Context) (context.Context, error)
- func (_m *Client) GetBucket(ctx context.Context, slug string) (textile.Bucket, error)
- func (_m *Client) GetBucketContext(ctx context.Context, bucketSlug string) (context.Context, *thread.ID, error)
- func (_m *Client) GetDefaultBucket(ctx context.Context) (textile.Bucket, error)
- func (_m *Client) GetLocalBucketContext(ctx context.Context, bucketSlug string) (context.Context, *thread.ID, error)
- func (_m *Client) GetThreadsConnection() (*client.Client, error)
- func (_m *Client) IsRunning() bool
- func (_m *Client) ListBuckets(ctx context.Context) ([]textile.Bucket, error)
- func (_m *Client) Shutdown() error
- func (_m *Client) StartAndBootstrap(ctx context.Context, cfg config.Config) error
- func (_m *Client) WaitForReady() chan bool
- type Config
- type Keychain
- type Path
- type SpaceEnv
- type Store
- func (_m *Store) Close() error
- func (_m *Store) Get(key []byte) ([]byte, error)
- func (_m *Store) IsOpen() bool
- func (_m *Store) KeysWithPrefix(prefix string) ([]string, error)
- func (_m *Store) Open() error
- func (_m *Store) Remove(key []byte) error
- func (_m *Store) Set(key []byte, value []byte) error
- func (_m *Store) SetString(key string, value string) error
- type Syncer
- type TextileNotifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶ added in v0.0.4
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
DeleteDirOrFile provides a mock function with given fields: ctx, _a1
func (*Bucket) DirExists ¶ added in v0.0.4
DirExists provides a mock function with given fields: ctx, _a1
func (*Bucket) FileExists ¶ added in v0.0.4
FileExists provides a mock function with given fields: ctx, _a1
func (*Bucket) GetContext ¶ added in v0.0.4
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
GetFile provides a mock function with given fields: ctx, _a1, w
func (*Bucket) ListDirectory ¶ added in v0.0.4
ListDirectory provides a mock function with given fields: ctx, _a1
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
CreateBucket provides a mock function with given fields: ctx, bucketSlug
func (*Client) GetBaseThreadsContext ¶ added in v0.0.3
GetBaseThreadsContext provides a mock function with given fields: ctx
func (*Client) GetBucket ¶ added in v0.0.4
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
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
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) StartAndBootstrap ¶ added in v0.0.3
StartAndBootstrap provides a mock function with given fields: ctx, cfg
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 Keychain ¶ added in v0.0.6
Keychain is an autogenerated mock type for the Keychain type
func (*Keychain) GenerateKeyPair ¶ added in v0.0.6
GenerateKeyPair provides a mock function with given fields:
func (*Keychain) GenerateKeyPairWithForce ¶ added in v0.0.6
GenerateKeyPairWithForce provides a mock function with given fields:
func (*Keychain) GetStoredKeyPairInLibP2PFormat ¶ added in v0.0.6
GetStoredKeyPairInLibP2PFormat provides a mock function with given fields:
type SpaceEnv ¶ added in v0.0.4
SpaceEnv is an autogenerated mock type for the SpaceEnv type
func (*SpaceEnv) CurrentFolder ¶ added in v0.0.4
CurrentFolder provides a mock function with given fields:
func (*SpaceEnv) WorkingFolder ¶ added in v0.0.4
WorkingFolder provides a mock function with given fields:
type Store ¶
Store is an autogenerated mock type for the Store type
func (*Store) KeysWithPrefix ¶ added in v0.0.4
KeysWithPrefix provides a mock function with given fields: prefix
type Syncer ¶ added in v0.0.4
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
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