Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBlobStoreService ¶
func NewBlobStoreService(store Store) *blobStoreService
Types ¶
type FilesystemStore ¶
type FilesystemStore struct {
// contains filtered or unexported fields
}
func NewFilesystemStore ¶
func NewFilesystemStore(path string) *FilesystemStore
func (*FilesystemStore) CreateBlob ¶
func (*FilesystemStore) Open ¶
func (s *FilesystemStore) Open(ctx context.Context, sha256 []byte) (io.ReadCloser, error)
type Store ¶
type Store interface { // CreateBlob will create a blob from the content, verifying the sha256 hash matches. CreateBlob(ctx context.Context, sha256 []byte, content io.Reader) (*BlobInfo, error) // OpenBlob returns a reader for the blob with specified sha256 hash. Open(ctx context.Context, sha256 []byte) (io.ReadCloser, error) }
Click to show internal directories.
Click to hide internal directories.