service

package
v0.26.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	Name                   = "service"
	FlagServiceWhereClause = "collector.service.services-where"
	FlagServiceUseAPI      = "collector.service.use-api"
)

Variables

View Source
var ConfigDefaults = Config{
	ServiceWhereClause: "",
	UseAPI:             false,
}

Functions

func New

func New(logger log.Logger, config *Config) types.Collector

func NewWithFlags

func NewWithFlags(app *kingpin.Application) types.Collector

Types

type Config

type Config struct {
	ServiceWhereClause string `yaml:"service_where_clause"`
	UseAPI             bool   `yaml:"use_api"`
}

type Win32_Service

type Win32_Service struct {
	DisplayName string
	Name        string
	ProcessId   uint32
	State       string
	Status      string
	StartMode   string
	StartName   *string
}

Win32_Service docs: - https://msdn.microsoft.com/en-us/library/aa394418(v=vs.85).aspx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL