-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fxamacker/reduce-checkpoint-serialization-…
…memory
- Loading branch information
Showing
42 changed files
with
946 additions
and
1,010 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package insecure | ||
|
||
// AttackOrchestrator represents the stateful interface that implements a certain type of attack, e.g., wintermute attack. | ||
type AttackOrchestrator interface { | ||
// HandleEgressEvent implements logic of processing the outgoing events received from a corrupted node. | ||
// Corrupted nodes relay all their outgoing events to the orchestrator instead of dispatching them to the network. | ||
// | ||
// Note: as a design assumption, this method is invoked sequentially by the OrchestratorNetwork to pass the | ||
// events of corrupted nodes. Hence, no extra concurrency-safe consideration is needed. | ||
HandleEgressEvent(*EgressEvent) error | ||
|
||
Register(OrchestratorNetwork) | ||
|
||
// HandleIngressEvent implements the logic of processing an incoming event to a corrupted node. | ||
// Note: as a design assumption, this method is invoked sequentially by the OrchestratorNetwork to pass the | ||
// events of corrupted nodes. Hence, no extra concurrency-safe consideration is needed. | ||
HandleIngressEvent(*IngressEvent) error | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.