Documentation ¶
Overview ¶
Package application contains a application gatherer.
Index ¶
Constants ¶
View Source
const ( // GathererName captures name of application gatherer GathererName = "AWS:Application" // SchemaVersionOfApplication represents schema version of application gatherer SchemaVersionOfApplication = "1.0" )
View Source
const ( // RPMPackageManager represents rpm package management RPMPackageManager = "rpm" // DPKGPackageManager represents dpkg package management DPKGPackageManager = "dpkg" )
Variables ¶
This section is empty.
Functions ¶
func CollectApplicationData ¶
func CollectApplicationData(context context.T) (appData []model.ApplicationData)
CollectApplicationData collects all application data from the system using rpm or dpkg query.
func ConvertToApplicationData ¶
func ConvertToApplicationData(input string) (data []model.ApplicationData, err error)
ConvertToApplicationData converts query output into json string so that it can be deserialized easily
func GetApplicationData ¶
func GetApplicationData(context context.T, command string, args []string) (data []model.ApplicationData, err error)
GetApplicationData runs a shell command and gets information about all packages/applications
Types ¶
type T ¶
type T struct{}
T represents application gatherer which implements all contracts for gatherers.
func (*T) RequestStop ¶
RequestStop stops the execution of application gatherer.
Click to show internal directories.
Click to hide internal directories.