Documentation
¶
Rendered for windows/amd64
Index ¶
- Constants
- func NewHostinfoPlugin(id ids.PluginID, ctx agent.AgentContext, hostInfo common.HostInfo) agent.Plugin
- func NewServicesPlugin(id ids.PluginID, ctx agent.AgentContext) agent.Plugin
- func NewUpdatesPlugin(id ids.PluginID, ctx agent.AgentContext) agent.Plugin
- type HostInfoWindows
- type HostinfoPlugin
- type Output_Win32_Service
- type ServicesPlugin
- type UpdatesPlugin
- type Win32_QuickFixEngineering
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 NewServicesPlugin ¶
func NewUpdatesPlugin ¶
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 (self *HostinfoPlugin) Data() types.PluginInventoryDataset
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
Click to show internal directories.
Click to hide internal directories.