@@ -196,6 +196,14 @@ impl PluginType {
196
196
}
197
197
}
198
198
199
+ /// Check permissions for the execute lifecycle event.
200
+ pub fn check_execute ( plugin_type : & PluginType ) -> CheckResult {
201
+ #[ allow( clippy:: match_single_binding) ]
202
+ match plugin_type {
203
+ _ => CheckResult :: None ,
204
+ }
205
+ }
206
+
199
207
/// Check permissions for the add external plugin adapter lifecycle event.
200
208
pub fn check_add_external_plugin_adapter ( plugin_type : & PluginType ) -> CheckResult {
201
209
#[ allow( clippy:: match_single_binding) ]
@@ -390,6 +398,14 @@ impl Plugin {
390
398
plugin. inner ( ) . validate_decompress ( ctx)
391
399
}
392
400
401
+ /// Validate the execute lifecycle event.
402
+ pub ( crate ) fn validate_execute (
403
+ plugin : & Plugin ,
404
+ ctx : & PluginValidationContext ,
405
+ ) -> Result < ValidationResult , ProgramError > {
406
+ plugin. inner ( ) . validate_execute ( ctx)
407
+ }
408
+
393
409
/// Validate the add external plugin adapter lifecycle event.
394
410
pub ( crate ) fn validate_add_external_plugin_adapter (
395
411
plugin : & Plugin ,
@@ -626,6 +642,14 @@ pub(crate) trait PluginValidation {
626
642
abstain ! ( )
627
643
}
628
644
645
+ /// Validate the execute lifecycle action.
646
+ fn validate_execute (
647
+ & self ,
648
+ _ctx : & PluginValidationContext ,
649
+ ) -> Result < ValidationResult , ProgramError > {
650
+ abstain ! ( )
651
+ }
652
+
629
653
/// Validate the update_plugin lifecycle action.
630
654
fn validate_update_external_plugin_adapter (
631
655
& self ,
0 commit comments