Documentation ¶
Overview ¶
Package bonfire implements the B2 service.
Index ¶
- type FS
- func (f FS) Finish(fileId string) error
- func (f FS) Get(fileId string) ([]byte, error)
- func (f FS) ObjectByName(bucket, name string) (pyre.DownloadableObject, error)
- func (f FS) PartWriter(id string, part int) (io.WriteCloser, error)
- func (f FS) Parts(id string) ([]string, error)
- func (f FS) Start(bucketId, fileName, fileId string, bs []byte) error
- func (f FS) Writer(bucket, name, id string) (io.WriteCloser, error)
- type LocalBucket
- func (lb *LocalBucket) AddBucket(id, name string, bs []byte) error
- func (lb *LocalBucket) GetBucket(id string) ([]byte, error)
- func (lb *LocalBucket) GetBucketID(name string) (string, error)
- func (lb *LocalBucket) ListBuckets(acct string) ([][]byte, error)
- func (lb *LocalBucket) RemoveBucket(id string) error
- func (lb *LocalBucket) UpdateBucket(id string, rev int, bs []byte) error
- type Localhost
- func (l Localhost) APIRoot(string) string
- func (Localhost) Authorize(string, string) (string, error)
- func (Localhost) CheckCreds(string, string) error
- func (l Localhost) DownloadRoot(string) string
- func (Localhost) Sizes(string) (int32, int32)
- func (l Localhost) String() string
- func (l Localhost) UploadHost(id string) (string, error)
- func (l Localhost) UploadPartHost(fileId string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS string
func (FS) ObjectByName ¶
func (f FS) ObjectByName(bucket, name string) (pyre.DownloadableObject, error)
func (FS) PartWriter ¶
type LocalBucket ¶
type LocalBucket struct { Port int // contains filtered or unexported fields }
func (*LocalBucket) GetBucketID ¶
func (lb *LocalBucket) GetBucketID(name string) (string, error)
func (*LocalBucket) ListBuckets ¶
func (lb *LocalBucket) ListBuckets(acct string) ([][]byte, error)
func (*LocalBucket) RemoveBucket ¶
func (lb *LocalBucket) RemoveBucket(id string) error
func (*LocalBucket) UpdateBucket ¶
func (lb *LocalBucket) UpdateBucket(id string, rev int, bs []byte) error
Click to show internal directories.
Click to hide internal directories.