MCPcopy Create free account
hub / github.com/cloudwan/gohan / Fetch

Method Fetch

sync/sync.go:34–34  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

32 Lock(path string, block bool) (notifyLost chan struct{}, err error)
33 Unlock(path string) error
34 Fetch(path string) (*Node, error)
35 Update(path, json string) error
36 Delete(path string, prefix bool) error
37 // Watch monitors changes on path and emits Events to responseChan.

Callers 15

cli_test.goFile · 0.65
server_test.goFile · 0.65
fetchStoredRevisionMethod · 0.65
DeleteContextMethod · 0.65
StateUpdateMethod · 0.65
MonitoringUpdateMethod · 0.65
checkIfResourceExistsFunction · 0.65
fetchResourceForActionFunction · 0.65

Implementers 5

Syncsync/etcd/etcd.go
MockSyncsync/mocks/sync_mock.go
MockSyncMockRecordersync/mocks/sync_mock.go
Syncsync/noop/noop.go
Syncsync/etcdv3/etcd.go

Calls

no outgoing calls

Tested by 9

TestFetchFunction · 0.52
TestFetchMultipleNodesFunction · 0.52
TestRecursiveUpdateFunction · 0.52
TestNonEmptyUpdateFunction · 0.52
TestEmptyUpdateFunction · 0.52
TestRecursiveUpdateFunction · 0.52
TestFetchMultipleNodesFunction · 0.52
TestUpdateWithoutPathFunction · 0.52
TestNotIncludedPathsFunction · 0.52