Documentation
¶
Overview ¶
Package capabilities maintain global capabilities
Scan() use registered scanners functions to update capabilities list, then store this capabilities list on filesystem.
Has(cap) use capabilities file to verify if cap exists ¶
A global list of registered scanner functions may be Registered to scanner list. Registered scanners are called to refresh capabilities during Scan()
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorNeedScan error mean capabilities needs scan ErrorNeedScan = errors.New("capabilities not yet scanned") )
View Source
var (
ExecPrefix = "node.x.path."
)
Functions ¶
func MakePath ¶
MakePath returns "node.x.exportfs=/usr/sbin/exportfs" for the "exportfs" base and the "/usr/sbin/exportfs" path. This format can then be parsed by GetPath() to return the path for a given base.
func Scan ¶
Scan refresh capabilities from the scanners function calls, then it update capabilities list stored on file system
func SetCacheFile ¶
func SetCacheFile(s string)
Types ¶
Click to show internal directories.
Click to hide internal directories.