MCPcopy
hub / github.com/microsoft/retina / IWatcher

Interface IWatcher

pkg/managers/watchermanager/types.go:15–20  ·  view source on GitHub ↗

go:generate go run go.uber.org/mock/mockgen@v0.4.0 -source=types.go -destination=mocks/mock_types.go -package=mocks .

Source from the content-addressed store, hash-verified

13
14//go:generate go run go.uber.org/mock/mockgen@v0.4.0 -source=types.go -destination=mocks/mock_types.go -package=mocks .
15type IWatcher interface {
16 // Init, Stop, and Refresh should only be called by watchermanager.
17 Init(ctx context.Context) error
18 Stop(ctx context.Context) error
19 Refresh(ctx context.Context) error
20}
21
22type IWatcherManager interface {
23 Start(ctx context.Context) error

Callers 17

TestPluginInitFunction · 0.65
TestPluginStopFunction · 0.65
ReconcileMethod · 0.65
runMethod · 0.65
newBaseMetricsObjectFunction · 0.65
CleanMethod · 0.65
RunMethod · 0.65

Implementers 4

MockIWatcherpkg/managers/watchermanager/mocks/mock
MockIWatcherMockRecorderpkg/managers/watchermanager/mocks/mock
EndpointWatcherpkg/watchers/endpoint/endpoint.go
ApiServerWatcherpkg/watchers/apiserver/apiserver.go

Calls

no outgoing calls

Tested by

no test coverage detected