fs

package
v0.0.0-...-7578c0e Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMetrics

func DefaultMetrics() []string

Types

type FileSystemWatcher

type FileSystemWatcher struct {
	AllowedTypes      map[string]struct{}
	ExcludePath       map[string]struct{}
	ExcludedPathCache map[string]bool
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(config FileSystemWatcherConfig, logger *logger.Logger) *FileSystemWatcher

func (*FileSystemWatcher) Results

func (fw *FileSystemWatcher) Results() (helper.MeasurementsMap, error)

type FileSystemWatcherConfig

type FileSystemWatcherConfig struct {
	TypeInclude                 []string
	PathExclude                 []string
	PathExcludeRecurse          bool
	Metrics                     []string
	IdentifyMountpointsByDevice bool
}

Jump to

Keyboard shortcuts

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