Use fds and pass Payloads over diff api

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2019-08-05 14:33:04 +00:00
parent 366823727f
commit f867401c69
6 changed files with 288 additions and 42 deletions

View File

@@ -97,3 +97,11 @@ func WithLabels(labels map[string]string) Opt {
return nil
}
}
// WithPayloads sets the apply processor payloads to the config
func WithPayloads(payloads map[string]*types.Any) ApplyOpt {
return func(c *ApplyConfig) error {
c.ProcessorPayloads = payloads
return nil
}
}