service

package
v0.0.0-...-0117b6e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 5

Documentation

Overview

Package service contains a service gatherer.

Index

Constants

View Source
const (
	// GathererName captures name of Service gatherer
	GathererName = "AWS:Service"
	// SchemaVersionOfServiceGatherer represents schema version of Service gatherer
	SchemaVersionOfServiceGatherer = "1.0"
)

Variables

Functions

func LogError

func LogError(log log.T, err error)

LogError is a wrapper on log.Error for easy testability

Types

type T

type T struct{}

func Gatherer

func Gatherer(context context.T) *T

Gatherer returns new Process gatherer

func (*T) Name

func (t *T) Name() string

Name returns name of Process gatherer

func (*T) RequestStop

func (t *T) RequestStop() error

RequestStop stops the execution of Service gatherer.

func (*T) Run

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

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

Jump to

Keyboard shortcuts

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