Skip to content

Commit

Permalink
implement replacement transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
Liujingfang1 committed Oct 14, 2019
1 parent f16b45e commit 8dd469e
Show file tree
Hide file tree
Showing 5 changed files with 620 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/plugins/builtinplugintype_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/plugins/builtins.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const (
HashTransformer
InventoryTransformer
LegacyOrderTransformer
ReplacementTransformer
)

var stringToBuiltinPluginTypeMap map[string]BuiltinPluginType
Expand Down Expand Up @@ -72,4 +73,5 @@ var TransformerFactories = map[BuiltinPluginType]func() resmap.TransformerPlugin
HashTransformer: builtin.NewHashTransformerPlugin,
InventoryTransformer: builtin.NewInventoryTransformerPlugin,
LegacyOrderTransformer: builtin.NewLegacyOrderTransformerPlugin,
ReplacementTransformer: builtin.NewReplacementTransformerPlugin,
}
227 changes: 227 additions & 0 deletions plugin/builtin/ReplacementTransformer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8dd469e

Please sign in to comment.