Make Diff/Apply plugable

Signed-off-by: Volodymyr Burenin <vburenin@gmail.com>
This commit is contained in:
Volodymyr Burenin
2017-06-01 18:38:33 -05:00
parent 35d74aa9d8
commit 3c76a667b6
11 changed files with 249 additions and 143 deletions

View File

@@ -19,6 +19,7 @@ const (
GRPCPlugin
SnapshotPlugin
TaskMonitorPlugin
DiffPlugin
)
type Registration struct {
@@ -35,6 +36,7 @@ type InitContext struct {
Content content.Store
Meta *bolt.DB
Snapshotter snapshot.Snapshotter
Differ Differ
Config interface{}
Context context.Context
Monitor TaskMonitor