Export storage.CreateOptions in top-level package

Let the options for `BlobStore.Create()` be modified in middleware
wrappers.

Signed-off-by: Michal Minar <miminar@redhat.com>
This commit is contained in:
Michal Minář 2016-07-06 16:00:29 +02:00 committed by Michal Minar
parent 1fc752c718
commit 3f1434525b
4 changed files with 91 additions and 22 deletions

View file

@ -192,6 +192,15 @@ type BlobCreateOption interface {
Apply(interface{}) error
}
// CreateOptions is a collection of blob creation modifiers relevant to general
// blob storage intended to be configured by the BlobCreateOption.Apply method.
type CreateOptions struct {
Mount struct {
ShouldMount bool
From reference.Canonical
}
}
// BlobWriter provides a handle for inserting data into a blob store.
// Instances should be obtained from BlobWriteService.Writer and
// BlobWriteService.Resume. If supported by the store, a writer can be