application

package
v0.0.0-...-7638cb1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

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 Gatherer

func Gatherer(context context.T) *T

Gatherer returns new application gatherer

func (*T) Name

func (t *T) Name() string

Name returns name of application gatherer

func (*T) RequestStop

func (t *T) RequestStop(stopType contracts.StopType) error

RequestStop stops the execution of application gatherer.

func (*T) Run

func (t *T) Run(context context.T, configuration model.Config) (items []model.Item, err error)

Run executes application gatherer and returns list of inventory.Item comprising of application data

Jump to

Keyboard shortcuts

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