Skip to content

Commit b444211

Browse files
PLEX-1706: adding deltaStage (or config) per methods in the capability
1 parent 4186ff6 commit b444211

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

pkg/capabilities/capabilities.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
492515
type 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)

0 commit comments

Comments
 (0)