Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPermission ¶
Types ¶
type ManagerProvider ¶
type ManagerProvider interface {
Connect() (WinServiceManager, error)
}
ManagerProvider sets interface for acquiring manager instance, like mgr.Mgr
type MgProvider ¶
type MgProvider struct { }
MgProvider is an implementation of WinServiceManagerProvider interface returning WinSvcMgr
func (*MgProvider) Connect ¶
func (rmr *MgProvider) Connect() (WinServiceManager, error)
type ServiceErr ¶
func (*ServiceErr) Error ¶
func (e *ServiceErr) Error() string
type ServiceInfo ¶
type WinService ¶
type WinService interface { Close() error Config() (mgr.Config, error) Query() (svc.Status, error) }
WinService provides interface for svc.Service
type WinServiceManager ¶
type WinServiceManager interface { Disconnect() error OpenService(name string) (WinService, error) ListServices() ([]string, error) }
WinServiceManager provides interface for mgr.Mgr
type WinServices ¶
type WinServices struct { Log telegraf.Logger ServiceNames []string `toml:"service_names"` ServiceNamesExcluded []string `toml:"excluded_service_names"` // contains filtered or unexported fields }
WinServices is an implementation if telegraf.Input interface, providing info about Windows Services
func (*WinServices) Description ¶
func (m *WinServices) Description() string
func (*WinServices) Gather ¶
func (m *WinServices) Gather(acc telegraf.Accumulator) error
func (*WinServices) Init ¶ added in v1.17.0
func (m *WinServices) Init() error
func (*WinServices) SampleConfig ¶
func (m *WinServices) SampleConfig() string
type WinSvcMgr ¶
type WinSvcMgr struct {
// contains filtered or unexported fields
}
WinSvcMgr is wrapper for mgr.Mgr implementing WinServiceManager interface
func (*WinSvcMgr) Disconnect ¶
func (*WinSvcMgr) ListServices ¶
func (*WinSvcMgr) OpenService ¶
func (m *WinSvcMgr) OpenService(name string) (WinService, error)
Click to show internal directories.
Click to hide internal directories.