KeyValueDatasource is a datasource that can retrieve values by (string) keys. Datsources can be just about anything. But a key/value datasource can be used for a special purpose. They can be accessed in From() clauses in a registry configuration.
| 145 | // can be used for a special purpose. They can be accessed in From() |
| 146 | // clauses in a registry configuration. |
| 147 | type KeyValueDatasource interface { |
| 148 | Value(key string) interface{} |
| 149 | } |
| 150 | |
| 151 | // NewContext creates a new empty cookoo.ExecutionContext and calls its Init() method. |
| 152 | func NewContext() Context { |
no outgoing calls
no test coverage detected