file

package
v0.0.0-...-028f1de Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GathererName captures name of file gatherer
	GathererName = "ACS:File"
	// SchemaVersionOfFileGatherer represents schema version of file gatherer
	SchemaVersionOfFileGatherer = "1.0"
)
View Source
const DirScanLimit = 5000
View Source
const DirScanLimitExceeded = "Directory Scan Limit Exceeded"
View Source
const FileCountLimit = 500

Limits to help keep file information under item size limit and prevent long scanning. The Dir Limits can be configured through input parameters

View Source
const FileCountLimitExceeded = "File Count Limit Exceeded"

Variables

View Source
var DirScanLimitError = errors.New(DirScanLimitExceeded)
View Source
var FileCountLimitError = errors.New(FileCountLimitExceeded)

Functions

This section is empty.

Types

type T

type T struct{}

func Gatherer

func Gatherer() *T

Gatherer returns new file gatherer

func (*T) Name

func (t *T) Name() string

Name returns name of file gatherer

func (*T) Run

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

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

Jump to

Keyboard shortcuts

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