Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterKnownExplorePolicies ¶
func RegisterKnownExplorePolicies()
func RegisterPolicy ¶
func RegisterPolicy(name string, fn PolicyFactory)
Types ¶
type ExplorePolicy ¶
type ExplorePolicy interface { // name of the policy Name() string // should support dynamic reloading LoadConfig(cfg config.Config) error // policy can read storage, but not expected to perform write ops. // orchestrator should write history to the storage. SetHistoryStorage(storage historystorage.HistoryStorage) error // dequeue action ActionChan() chan signal.Action // queue event QueueEvent(signal.Event) }
func CreatePolicy ¶
func CreatePolicy(name string) (ExplorePolicy, error)
type PolicyFactory ¶
type PolicyFactory func() ExplorePolicy
Directories ¶
Path | Synopsis |
---|---|
Package dumb provides the policy which does not control non-deternimism
|
Package dumb provides the policy which does not control non-deternimism |
Package random provides the default non-deterministic policy
|
Package random provides the default non-deterministic policy |
Package replayable provides the EXPERIMENTAL semi-deterministic replayable policy.
|
Package replayable provides the EXPERIMENTAL semi-deterministic replayable policy. |
Click to show internal directories.
Click to hide internal directories.