File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -489,10 +489,34 @@ type RemoteTargetConfig struct {
489489 RequestHashExcludedAttributes []string
490490}
491491
492+ // CapabilityMethodConfig holds configuration for a capability method (action or trigger).
493+ type CapabilityMethodConfig struct {
494+ Type CapabilityType
495+ Schedule string
496+ DeltaStage int
497+ }
498+
499+ //example from Bolek
500+ //var CapabilityMethodConfigs = map[string]CapabilityMethodConfig{
501+ // "CallContract": {
502+ // Type: CapabilityTypeAction, // or CapabilityTypeExecutable if defined
503+ // Schedule: "all_at_once",
504+ // },
505+ // "LogTrigger": {
506+ // Type: CapabilityTypeTrigger,
507+ // },
508+ // "WriteReport": {
509+ // Type: CapabilityTypeAction, // or CapabilityTypeExecutable if defined
510+ // Schedule: "one_at_a_time",
511+ // DeltaStage: 10,
512+ // },
513+ //}
514+
492515type RemoteExecutableConfig struct {
493516 RequestHashExcludedAttributes []string
494517 RegistrationRefresh time.Duration
495518 RegistrationExpiry time.Duration
519+ CapabilityMethodConfigs map [string ]CapabilityMethodConfig
496520}
497521
498522// NOTE: consider splitting this config into values stored in Registry (KS-118)
You can’t perform that action at this time.
0 commit comments