Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetBaseThreadsContext() (context.Context, error) GetBucketContext(bucketSlug string) (context.Context, *thread.ID, error) GetThreadsConnection() (*threadsClient.Client, error) ListBuckets() ([]*TextileBucketRoot, error) CreateBucket(bucketSlug string) (*TextileBucketRoot, error) Start() error Stop() error WaitForReady() chan bool StartAndBootstrap() 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.