fileacquisition

package
v1.4.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 20 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileConfiguration

type FileConfiguration struct {
	Filenames                         []string
	Filename                          string
	ForceInotify                      bool `yaml:"force_inotify"`
	configuration.DataSourceCommonCfg `yaml:",inline"`
}

type FileSource

type FileSource struct {
	// contains filtered or unexported fields
}

func (*FileSource) CanRun

func (f *FileSource) CanRun() error

func (*FileSource) Configure

func (f *FileSource) Configure(Config []byte, logger *log.Entry) error

func (*FileSource) ConfigureByDSN

func (f *FileSource) ConfigureByDSN(dsn string, labels map[string]string, logger *log.Entry) error

func (*FileSource) Dump

func (f *FileSource) Dump() interface{}

func (*FileSource) GetAggregMetrics

func (f *FileSource) GetAggregMetrics() []prometheus.Collector

func (*FileSource) GetMetrics

func (f *FileSource) GetMetrics() []prometheus.Collector

func (*FileSource) GetMode

func (f *FileSource) GetMode() string

func (*FileSource) GetName

func (f *FileSource) GetName() string

func (*FileSource) OneShotAcquisition

func (f *FileSource) OneShotAcquisition(out chan types.Event, t *tomb.Tomb) error

OneShotAcquisition reads a set of file and returns when done

func (*FileSource) StreamingAcquisition

func (f *FileSource) StreamingAcquisition(out chan types.Event, t *tomb.Tomb) error

func (*FileSource) SupportedModes

func (f *FileSource) SupportedModes() []string

SupportedModes returns the supported modes by the acquisition module

Jump to

Keyboard shortcuts

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