Skip to content

Commit 2c78878

Browse files
authored
feat: Add PluginKind "transformer". (#1828)
Add PluginKind's "transformer", which is necessary to enable the transformation's work.
1 parent 57a606f commit 2c78878

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugin/plugin_package.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ type Kind string
1818
const (
1919
KindSource Kind = "source"
2020
KindDestination Kind = "destination"
21+
KindTransformer Kind = "transformer"
2122
)
2223

2324
func (k Kind) Validate() error {
2425
switch k {
25-
case KindSource, KindDestination:
26+
case KindSource, KindDestination, KindTransformer:
2627
return nil
2728
default:
2829
return errors.New("invalid plugin kind: must be one of source, destination")

0 commit comments

Comments
 (0)