summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/agent/jobmgr/noop.go
blob: c64d07866514fa1b1c026c00e61a5c55a89b5182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// SPDX-License-Identifier: GPL-3.0-or-later

package jobmgr

import (
	"github.com/netdata/netdata/go/go.d.plugin/agent/functions"

	"github.com/netdata/netdata/go/go.d.plugin/agent/confgroup"
	"github.com/netdata/netdata/go/go.d.plugin/agent/vnodes"
)

type noop struct{}

func (n noop) Lock(string) (bool, error)                          { return true, nil }
func (n noop) Unlock(string)                                      {}
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(name string, reg func(functions.Function)) {}
func (n noop) Unregister(name string)                             {}