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) JoinBucket(ctx context.Context, slug string, ti *domain.ThreadInfo) (bool, error)
- func (_m *Client) ListBuckets(ctx context.Context) ([]textile.Bucket, error)
- func (_m *Client) ShareBucket(ctx context.Context, bucketSlug string) (*client.DBInfo, 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 ¶
Bucket is an autogenerated mock type for the Bucket type
func (*Bucket) CreateDirectory ¶
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 ¶
DeleteDirOrFile provides a mock function with given fields: ctx, _a1
func (*Bucket) FileExists ¶
FileExists provides a mock function with given fields: ctx, _a1
func (*Bucket) GetContext ¶
GetContext provides a mock function with given fields: ctx
func (*Bucket) GetData ¶
func (_m *Bucket) GetData() textile.BucketData
GetData provides a mock function with given fields:
func (*Bucket) ListDirectory ¶
ListDirectory provides a mock function with given fields: ctx, _a1
type Client ¶
Client is an autogenerated mock type for the Client type
func (*Client) CreateBucket ¶
CreateBucket provides a mock function with given fields: ctx, bucketSlug
func (*Client) GetBaseThreadsContext ¶
GetBaseThreadsContext provides a mock function with given fields: ctx
func (*Client) GetBucketContext ¶
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 ¶
GetDefaultBucket provides a mock function with given fields: ctx
func (*Client) GetLocalBucketContext ¶
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 ¶
GetThreadsConnection provides a mock function with given fields:
func (*Client) JoinBucket ¶ added in v0.0.8
JoinBucket provides a mock function with given fields: ctx, slug, ti
func (*Client) ListBuckets ¶
ListBuckets provides a mock function with given fields: ctx
func (*Client) ShareBucket ¶ added in v0.0.8
ShareBucket provides a mock function with given fields: ctx, bucketSlug
func (*Client) StartAndBootstrap ¶
StartAndBootstrap provides a mock function with given fields: ctx, cfg
func (*Client) WaitForReady ¶
WaitForReady provides a mock function with given fields:
type Config ¶
Config is an autogenerated mock type for the Config type
type Keychain ¶
Keychain is an autogenerated mock type for the Keychain type
func (*Keychain) GenerateKeyPair ¶
GenerateKeyPair provides a mock function with given fields:
func (*Keychain) GenerateKeyPairWithForce ¶
GenerateKeyPairWithForce provides a mock function with given fields:
func (*Keychain) GetStoredKeyPairInLibP2PFormat ¶
GetStoredKeyPairInLibP2PFormat provides a mock function with given fields:
type SpaceEnv ¶
SpaceEnv is an autogenerated mock type for the SpaceEnv type
func (*SpaceEnv) CurrentFolder ¶
CurrentFolder provides a mock function with given fields:
func (*SpaceEnv) WorkingFolder ¶
WorkingFolder provides a mock function with given fields:
type Store ¶
Store is an autogenerated mock type for the Store type
func (*Store) KeysWithPrefix ¶
KeysWithPrefix provides a mock function with given fields: prefix
type Syncer ¶
Syncer is an autogenerated mock type for the Syncer type
func (*Syncer) AddFileWatch ¶
func (_m *Syncer) AddFileWatch(addFileInfo domain.AddWatchFile) error
AddFileWatch provides a mock function with given fields: addFileInfo
type TextileNotifier ¶
TextileNotifier is an autogenerated mock type for the TextileNotifier type
func (*TextileNotifier) SendTextileEvent ¶
func (_m *TextileNotifier) SendTextileEvent(event events.TextileEvent)
SendTextileEvent provides a mock function with given fields: event