Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobResponse ¶
type BlobResponse struct { BlobId string `json:"blob_id"` BlobLength int64 `json:"length"` ContentType string `json:"content_type"` }
func (*BlobResponse) BlobDatum ¶
func (br *BlobResponse) BlobDatum() *models.ModelBlobDatum
type BlobStoreClient ¶
type BlobStoreClient interface { WriteBlob(prefix string, contentType string, bytes io.Reader) *BlobResponse ReadBlob(prefix string, blobID string, expectedContentType string, bodyReader func(body io.ReadCloser)) }
func GetBlobStore ¶
func GetBlobStore() BlobStoreClient
type HTTPBlobStoreClient ¶
type HTTPBlobStoreClient struct {
// contains filtered or unexported fields
}
func (*HTTPBlobStoreClient) ReadBlob ¶
func (c *HTTPBlobStoreClient) ReadBlob(prefix string, blobID string, expectedContentType string, bodyReader func(body io.ReadCloser))
func (*HTTPBlobStoreClient) WriteBlob ¶
func (c *HTTPBlobStoreClient) WriteBlob(prefix string, contentType string, bytes io.Reader) *BlobResponse
Click to show internal directories.
Click to hide internal directories.