explorepolicy

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2016 License: Apache-2.0 Imports: 8 Imported by: 12

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL