windows

package
v1.67.3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	ServiceBoot = iota
	ServiceSystem
	ServiceAutomatic
	ServiceManual
	ServiceDisabled
)

Service Startup codes

View Source
const (
	ServiceStateContinuePending = "ContinuePending"
	ServiceStatePausePending    = "PausePending"
	ServiceStatePaused          = "Paused"
	ServiceStateRunning         = "Running"
	ServiceStateStartPending    = "StartPending"
	ServiceStateStopPending     = "StopPending"
	ServiceStateStopped         = "Stopped"
)

Service state descriptions

Variables

This section is empty.

Functions

func NewHostinfoPlugin

func NewHostinfoPlugin(id ids.PluginID, ctx agent.AgentContext, hostInfo common.HostInfo) agent.Plugin

func NewServicesPlugin

func NewServicesPlugin(id ids.PluginID, ctx agent.AgentContext) agent.Plugin

func NewUpdatesPlugin

func NewUpdatesPlugin(id ids.PluginID, ctx agent.AgentContext) agent.Plugin

Types

type HostInfoWindows added in v1.67.3

type HostInfoWindows struct {
	WindowsPlatform     string `json:"windows_platform"`
	WindowsFamily       string `json:"windows_family"`
	WindowsVersion      string `json:"windows_version"`
	common.HostInfoData `mapstructure:",squash"`
}

func (*HostInfoWindows) SortKey added in v1.67.3

func (self *HostInfoWindows) SortKey() string

type HostinfoPlugin

type HostinfoPlugin struct {
	agent.PluginCommon
	common.HostInfo
}

func (*HostinfoPlugin) Data

func (*HostinfoPlugin) Run

func (self *HostinfoPlugin) Run()

type Output_Win32_Service

type Output_Win32_Service struct {
	Name        string `json:"id"`
	DisplayName string `json:"display_name"`
	State       string `json:"state"`
	ProcessId   string `json:"pid"`
}

All output must be strings, but WMI requires types to match its internal data formats so we have to do a translation struct with all strings.

func (Output_Win32_Service) SortKey

func (self Output_Win32_Service) SortKey() string

type ServicesPlugin

type ServicesPlugin struct {
	agent.PluginCommon
	// contains filtered or unexported fields
}

func (*ServicesPlugin) Run

func (self *ServicesPlugin) Run()

type UpdatesPlugin

type UpdatesPlugin struct {
	agent.PluginCommon
	// contains filtered or unexported fields
}

func (*UpdatesPlugin) Run

func (self *UpdatesPlugin) Run()

type Win32_QuickFixEngineering

type Win32_QuickFixEngineering struct {
	HotFixID    string `json:"id"`
	Description string `json:"description"`
	Caption     string `json:"knowledgebase_url"`
	InstalledOn string `json:"installed_time"`
}

See https://msdn.microsoft.com/en-us/library/aa394391(v=vs.85).aspx

func (Win32_QuickFixEngineering) SortKey

func (self Win32_QuickFixEngineering) SortKey() string

Jump to

Keyboard shortcuts

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