(ctx *gin.Context, instance compat.PluginInstance, module compat.Capability)
| 408 | } |
| 409 | |
| 410 | func supportOrAbort(ctx *gin.Context, instance compat.PluginInstance, module compat.Capability) (aborted bool) { |
| 411 | if compat.HasSupport(instance, module) { |
| 412 | return false |
| 413 | } |
| 414 | ctx.AbortWithError(400, fmt.Errorf("plugin does not support %s", module)) |
| 415 | return true |
| 416 | } |
no test coverage detected
searching dependent graphs…