Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action uint8
Action is a description of the change that occurred.
List of possible Actions.
type Config ¶
type Event ¶
type Event struct {
Timestamp time.Time // Time of event.
Path string // The path associated with the event.
TargetPath string // Target path for symlinks.
Action string // Action (like created, updated).
Info *Metadata // File metadata (if the file exists).
Hashes map[string]string // File hashes.
// contains filtered or unexported fields
}
Event describe the filesystem change and includes metadata about the file.
type EventReader ¶
func NewEventReader ¶
func NewEventReader(c Config) (EventReader, error)
NewEventReader creates a new EventReader backed by fsnotify.
type Metadata ¶
type Metadata struct {
Inode uint64
UID uint32
GID uint32
SID string
Owner string
Group string
Mode os.FileMode
Size int64
ATime time.Time // Last access time.
MTime time.Time // Last modification time.
CTime time.Time // Last status change time.
Type string // File type (dir, file, symlink).
}
Metadata contains file metadata.
type MetricSet ¶
type MetricSet struct {
mb.BaseMetricSet
// contains filtered or unexported fields
}
func (*MetricSet) Run ¶
func (ms *MetricSet) Run(reporter mb.PushReporter)
Click to show internal directories.
Click to hide internal directories.