network

package
v0.0.0-...-194cf1f Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 13

Documentation

Overview

Package network contains a network gatherer.

Package network contains a network gatherer.

Index

Constants

View Source
const (
	// GathererName captures name of network gatherer
	GathererName = "AWS:Network"
	// SchemaVersionOfApplication represents schema version of network gatherer
	SchemaVersionOfApplication = "1.0"
)

Variables

This section is empty.

Functions

func CollectNetworkData

func CollectNetworkData(context context.T) (data []model.NetworkData)

CollectNetworkData collects network information for linux

Types

type T

type T struct{}

T represents network gatherer which implements all contracts for gatherers.

func Gatherer

func Gatherer(context context.T) *T

Gatherer returns new network gatherer

func (*T) Name

func (t *T) Name() string

Name returns name of network gatherer

func (*T) RequestStop

func (t *T) RequestStop() 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 network gatherer and returns list of inventory.Item comprising of network data

Jump to

Keyboard shortcuts

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