@@ -101,9 +101,9 @@ func (lbs *linkedBlobStore) Put(ctx context.Context, mediaType string, p []byte)
101
101
return desc , lbs .linkBlob (ctx , desc )
102
102
}
103
103
104
- // createOptions is a collection of blob creation modifiers relevant to general
104
+ // CreateOptions is a collection of blob creation modifiers relevant to general
105
105
// blob storage intended to be configured by the BlobCreateOption.Apply method.
106
- type createOptions struct {
106
+ type CreateOptions struct {
107
107
Mount struct {
108
108
ShouldMount bool
109
109
From reference.Canonical
@@ -120,7 +120,7 @@ func (f optionFunc) Apply(v interface{}) error {
120
120
// mounted from the given canonical reference.
121
121
func WithMountFrom (ref reference.Canonical ) distribution.BlobCreateOption {
122
122
return optionFunc (func (v interface {}) error {
123
- opts , ok := v .(* createOptions )
123
+ opts , ok := v .(* CreateOptions )
124
124
if ! ok {
125
125
return fmt .Errorf ("unexpected options type: %T" , v )
126
126
}
@@ -136,7 +136,7 @@ func WithMountFrom(ref reference.Canonical) distribution.BlobCreateOption {
136
136
func (lbs * linkedBlobStore ) Create (ctx context.Context , options ... distribution.BlobCreateOption ) (distribution.BlobWriter , error ) {
137
137
context .GetLogger (ctx ).Debug ("(*linkedBlobStore).Writer" )
138
138
139
- var opts createOptions
139
+ var opts CreateOptions
140
140
141
141
for _ , option := range options {
142
142
err := option .Apply (& opts )
0 commit comments