Skip to content

Commit d4e4d98

Browse files
liggittsmarterclayton
authored andcommitted
UPSTREAM: docker/distribution: <carry>: export storage.CreateOptions
:100644 100644 68a347b... 38b9e71... M registry/storage/linkedblobstore.go
1 parent 2cedd24 commit d4e4d98

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

registry/storage/linkedblobstore.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ func (lbs *linkedBlobStore) Put(ctx context.Context, mediaType string, p []byte)
101101
return desc, lbs.linkBlob(ctx, desc)
102102
}
103103

104-
// createOptions is a collection of blob creation modifiers relevant to general
104+
// CreateOptions is a collection of blob creation modifiers relevant to general
105105
// blob storage intended to be configured by the BlobCreateOption.Apply method.
106-
type createOptions struct {
106+
type CreateOptions struct {
107107
Mount struct {
108108
ShouldMount bool
109109
From reference.Canonical
@@ -120,7 +120,7 @@ func (f optionFunc) Apply(v interface{}) error {
120120
// mounted from the given canonical reference.
121121
func WithMountFrom(ref reference.Canonical) distribution.BlobCreateOption {
122122
return optionFunc(func(v interface{}) error {
123-
opts, ok := v.(*createOptions)
123+
opts, ok := v.(*CreateOptions)
124124
if !ok {
125125
return fmt.Errorf("unexpected options type: %T", v)
126126
}
@@ -136,7 +136,7 @@ func WithMountFrom(ref reference.Canonical) distribution.BlobCreateOption {
136136
func (lbs *linkedBlobStore) Create(ctx context.Context, options ...distribution.BlobCreateOption) (distribution.BlobWriter, error) {
137137
context.GetLogger(ctx).Debug("(*linkedBlobStore).Writer")
138138

139-
var opts createOptions
139+
var opts CreateOptions
140140

141141
for _, option := range options {
142142
err := option.Apply(&opts)

0 commit comments

Comments
 (0)