diff options
Diffstat (limited to 'src/go/collectors/go.d.plugin/agent/jobmgr/noop.go')
-rw-r--r-- | src/go/collectors/go.d.plugin/agent/jobmgr/noop.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/agent/jobmgr/noop.go b/src/go/collectors/go.d.plugin/agent/jobmgr/noop.go new file mode 100644 index 0000000000..15883105de --- /dev/null +++ b/src/go/collectors/go.d.plugin/agent/jobmgr/noop.go @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + +package jobmgr + +import ( + "github.com/netdata/go.d.plugin/agent/confgroup" + "github.com/netdata/go.d.plugin/agent/vnodes" +) + +type noop struct{} + +func (n noop) Lock(string) (bool, error) { return true, nil } +func (n noop) Unlock(string) error { return nil } +func (n noop) Save(confgroup.Config, string) {} +func (n noop) Remove(confgroup.Config) {} +func (n noop) Contains(confgroup.Config, ...string) bool { return false } +func (n noop) Lookup(string) (*vnodes.VirtualNode, bool) { return nil, false } +func (n noop) Register(confgroup.Config) { return } +func (n noop) Unregister(confgroup.Config) { return } +func (n noop) UpdateStatus(confgroup.Config, string, string) { return } |