beater

package
v0.0.0-...-4b7782d Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

New creates an instance of fsstatbeat.

func StatEval

func StatEval(res config.Resource, in *FileState, ctx context.Context) (string, error)

Types

type FileState

type FileState struct {
	Name  string      `json:"name"`
	Path  string      `json:"path"`
	Umask string      `json:"umask"`
	Owner string      `json:"owner"`
	Group string      `json:"group"`
	Perm  os.FileMode `json:"perm"`
	Octal string      `json:"octal"`
}

func Fsstat

func Fsstat(r config.Resource) (state *FileState, err error)

Jump to

Keyboard shortcuts

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