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") )
Functions ¶
func Scan ¶
func Scan() error
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.