differ: make basediff constructor public

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi 2017-07-10 15:22:37 -07:00
parent 34f7b29120
commit 3c49320b1b

View File

@ -28,7 +28,7 @@ func init() {
if err != nil { if err != nil {
return nil, err return nil, err
} }
return newBaseDiff(c.(content.Store)) return NewBaseDiff(c.(content.Store))
}, },
}) })
} }
@ -41,7 +41,7 @@ var _ plugin.Differ = &BaseDiff{}
var emptyDesc = ocispec.Descriptor{} var emptyDesc = ocispec.Descriptor{}
func newBaseDiff(store content.Store) (*BaseDiff, error) { func NewBaseDiff(store content.Store) (*BaseDiff, error) {
return &BaseDiff{ return &BaseDiff{
store: store, store: store,
}, nil }, nil