Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetBaseThreadsContext(ctx context.Context) (context.Context, error) GetBucketContext(ctx context.Context, bucketSlug string) (context.Context, *thread.ID, error) GetThreadsConnection() (*threadsClient.Client, error) ListBuckets(ctx context.Context) ([]*TextileBucketRoot, error) CreateBucket(ctx context.Context, bucketSlug string) (*TextileBucketRoot, error) Start(cfg config.Config) error Stop() error WaitForReady() chan bool StartAndBootstrap(ctx context.Context, cfg config.Config) error FolderExists(ctx context.Context, key string, path string) (bool, error) FileExists(ctx context.Context, key string, path string, r io.Reader) (bool, error) UploadFile( ctx context.Context, bucketKey string, path string, reader io.Reader, ) (result path.Resolved, root path.Path, err error) GetFile( ctx context.Context, bucketKey string, path string, w io.Writer, ) error CreateDirectory( ctx context.Context, bucketKey string, path string, ) (result path.Resolved, root path.Path, err error) ListDirectory( ctx context.Context, bucketKey string, path string, ) (*TextileDirEntries, error) DeleteDirOrFile( ctx context.Context, bucketKey string, path string, ) (path.Resolved, error) }
type TextileBucketRoot ¶
type TextileBucketRoot buckets_pb.Root
type TextileDirEntries ¶
type TextileDirEntries buckets_pb.ListPathReply
Click to show internal directories.
Click to hide internal directories.