WithLabels is used to set content labels on the created diff content.
(labels map[string]string)
| 115 | |
| 116 | // WithLabels is used to set content labels on the created diff content. |
| 117 | func WithLabels(labels map[string]string) Opt { |
| 118 | return func(c *Config) error { |
| 119 | c.Labels = labels |
| 120 | return nil |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | // WithPayloads sets the apply processor payloads to the config |
| 125 | func WithPayloads(payloads map[string]typeurl.Any) ApplyOpt { |
no outgoing calls
no test coverage detected
searching dependent graphs…