ForInstance applies the logic to the specified instance
(instanceNames ...string)
| 172 | |
| 173 | // ForInstance applies the logic to the specified instance |
| 174 | func (fb *FencingMetadataExecutor) ForInstance(instanceNames ...string) *FencingMetadataExecutor { |
| 175 | fb.instanceNames = instanceNames |
| 176 | return fb |
| 177 | } |
| 178 | |
| 179 | // Execute executes the instructions given with the fluent builder, returns any error encountered |
| 180 | func (fb *FencingMetadataExecutor) Execute(ctx context.Context, key types.NamespacedName, obj client.Object) error { |
no outgoing calls
no test coverage detected