Documentation ¶
Index ¶
- Variables
- func NextKey(key string) string
- type Blob
- type BlobStore
- func (bs *BlobStore) Enumerate(blobs chan<- string, start, end string, limit int) error
- func (bs *BlobStore) Get(hash string) ([]byte, error)
- func (bs *BlobStore) ProcessBlobs()
- func (bs *BlobStore) Put(hash string, blob []byte) error
- func (bs *BlobStore) SetAPIKey(apiKey string)
- func (bs *BlobStore) Stat(hash string) (bool, error)
- func (bs *BlobStore) WaitBlobs()
- type BlobsBuffer
- type BlobsResp
- type KvStore
- func (kvs *KvStore) Get(key string, version int) (*response.KeyValue, error)
- func (kvs *KvStore) Keys(start, end string, limit int) ([]*response.KeyValue, error)
- func (kvs *KvStore) Put(key, value string, version int) (*response.KeyValue, error)
- func (kvs *KvStore) Versions(key string, start, end, limit int) (*response.KeyValueVersions, error)
- type MultipartWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBlobNotFound = errors.New("blob not found")
ErrBlobNotFound is returned from a get/stat request if the blob does not exist.
View Source
var ErrKeyNotFound = errors.New("key doest not exist")
Functions ¶
Types ¶
type BlobStore ¶
type BlobStore struct { ServerAddr string // contains filtered or unexported fields }
func NewBlobStore ¶
func (*BlobStore) ProcessBlobs ¶
func (bs *BlobStore) ProcessBlobs()
type BlobsBuffer ¶
func NewBlobsBuffer ¶
func NewBlobsBuffer(bs *BlobStore) *BlobsBuffer
func (*BlobsBuffer) Close ¶
func (bb *BlobsBuffer) Close()
func (*BlobsBuffer) Upload ¶
func (bb *BlobsBuffer) Upload() error
type KvStore ¶
type KvStore struct { ServerAddr string // contains filtered or unexported fields }
func NewKvStore ¶
type MultipartWriter ¶
func NewMultipartWriter ¶
func NewMultipartWriter() *MultipartWriter
func (*MultipartWriter) AddBlob ¶
func (mpw *MultipartWriter) AddBlob(hash string, blob []byte) error
func (*MultipartWriter) Close ¶
func (mpw *MultipartWriter) Close() error
func (*MultipartWriter) FormDataContentType ¶
func (mpw *MultipartWriter) FormDataContentType() string
Click to show internal directories.
Click to hide internal directories.