Documentation ¶
Overview ¶
Code generated by go-bindata. DO NOT EDIT. sources: assets/lenses/access.aug assets/lenses/apt_update_manager.aug assets/lenses/aptcacherngsecurity.aug assets/lenses/aptconf.aug assets/lenses/aptpreferences.aug assets/lenses/aptsources.aug assets/lenses/build.aug assets/lenses/crypttab.aug assets/lenses/dpkg.aug assets/lenses/inifile.aug assets/lenses/lightdm.aug assets/lenses/lvm.aug assets/lenses/nsswitch.aug assets/lenses/pam.aug assets/lenses/pamconf.aug assets/lenses/passwd.aug assets/lenses/quote.aug assets/lenses/rx.aug assets/lenses/sep.aug assets/lenses/sudoers.aug assets/lenses/util.aug assets/lenses/yum.aug
Package augeas provides some lenses for use with osquery's augeas support.
As we run a subset of the lenses, the simplest way to check for missing dependencies is to augtool:
augtool -c -S -I ./assets/lenses
Also handy is seeing what files this will ingest:
augtool -S -I .//assets/lenses print /files//*
You can also explore the augeas space via osquery. Some interesting examples:
select * from augeas; select * from augeas where node like "/augeas/load/%"; (requies osquery patches) select * from augeas where node like "/augeas/files/%%"; (requies osquery patches)
Index ¶
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func InstallLenses(targetDir string) error
- func MustAsset(name string) []byte
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func InstallLenses ¶
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
This section is empty.