github.com/netdata/go.d.plugin@v0.58.1/agent/jobmgr/noop.go (about)

     1  // SPDX-License-Identifier: GPL-3.0-or-later
     2  
     3  package jobmgr
     4  
     5  import (
     6  	"github.com/netdata/go.d.plugin/agent/confgroup"
     7  	"github.com/netdata/go.d.plugin/agent/vnodes"
     8  )
     9  
    10  type noop struct{}
    11  
    12  func (n noop) Lock(string) (bool, error)                     { return true, nil }
    13  func (n noop) Unlock(string) error                           { return nil }
    14  func (n noop) Save(confgroup.Config, string)                 {}
    15  func (n noop) Remove(confgroup.Config)                       {}
    16  func (n noop) Contains(confgroup.Config, ...string) bool     { return false }
    17  func (n noop) Lookup(string) (*vnodes.VirtualNode, bool)     { return nil, false }
    18  func (n noop) Register(confgroup.Config)                     { return }
    19  func (n noop) Unregister(confgroup.Config)                   { return }
    20  func (n noop) UpdateStatus(confgroup.Config, string, string) { return }