Documentation ¶
Overview ¶
Package gatherers contains routines for different types of inventory gatherers
Package gatherers contains routines for different types of inventory gatherers ¶
Package gatherers contains routines for different types of inventory gatherers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeGatherers ¶
func InitializeGatherers(context context.T) (SupportedGatherer, InstalledGatherer)
InitializeGatherers collects supported and installed gatherers
Types ¶
type InstalledGatherer ¶
InstalledGatherer is a map of gatherers of all platforms
type Mock ¶
Mock represents a mocked gatherer.
func NewMockDefault ¶
func NewMockDefault() *Mock
NewMockDefault returns an instance of Mock with default expectations set.
func (*Mock) RequestStop ¶
RequestStop mock implementation of namesake
type SupportedGatherer ¶
SupportedGatherer is a map of supported gatherer on current platform
type T ¶
type T interface { //returns the Name of the gatherer Name() string //runs the gatherer with a given configuration //returns array of inventory.Item as custom gatherer collects multiple //inventory items at a time Run(context context.T, configuration model.Config) ([]model.Item, error) //stops the execution of a gatherer RequestStop(stopType contracts.StopType) error }
T defines operations that all inventory gatherers support
Directories ¶
Path | Synopsis |
---|---|
Package application contains a application gatherer.
|
Package application contains a application gatherer. |
Package awscomponent contains a aws component gatherer.
|
Package awscomponent contains a aws component gatherer. |
Package custom contains a gatherer for collecting custom inventory items
|
Package custom contains a gatherer for collecting custom inventory items |
Package network contains a network gatherer.
|
Package network contains a network gatherer. |
Click to show internal directories.
Click to hide internal directories.