MCPcopy Create free account
hub / github.com/Masterminds/cookoo / KeyValueDatasource

Interface KeyValueDatasource

context.go:147–149  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

145// can be used for a special purpose. They can be accessed in From()
146// clauses in a registry configuration.
147type KeyValueDatasource interface {
148 Value(key string) interface{}
149}
150
151// NewContext creates a new empty cookoo.ExecutionContext and calls its Init() method.
152func NewContext() Context {

Callers 7

defaultFromSourcesMethod · 0.65
GetMethod · 0.65
HasMethod · 0.65
TestURLDatasourceFunction · 0.65
TestFormValuesDatasourceFunction · 0.65
TestPathDatasourceFunction · 0.65

Implementers 7

MockDatasourcerouter_test.go
testDsgetter_test.go
RequestHeaderDatasourceweb/datasources.go
FormValuesDatasourceweb/datasources.go
QueryParameterDatasourceweb/datasources.go
URLDatasourceweb/datasources.go
PathDatasourceweb/datasources.go

Calls

no outgoing calls

Tested by

no test coverage detected