blobstore

package
v0.0.0-...-6943f8c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL