Documentation
¶
Index ¶
- Constants
- func FormatLoadStats(scanner Scanner) []string
- func PrintList(w io.Writer, rulesDir string, showLicense, showSource bool) error
- func Status(rulesDir string) (*core.RuleBundleInfo, error)
- func WriteLicenseSummary(rulesDir string, lock *LockFile) error
- type LockEntry
- type LockFile
- type LockSource
- type RuleLoadStat
- type Scanner
- type VerifyResult
Constants ¶
View Source
const LockFileName = "rules.lock.json"
Variables ¶
This section is empty.
Functions ¶
func FormatLoadStats ¶
func WriteLicenseSummary ¶
Types ¶
type LockFile ¶
type LockFile struct {
Version string `json:"version"`
UpdatedAt string `json:"updated_at"`
Sources []LockSource `json:"sources"`
Files []LockEntry `json:"files"`
}
type LockSource ¶
type RuleLoadStat ¶
type Scanner ¶
type VerifyResult ¶
func Verify ¶
func Verify(rulesDir string) VerifyResult
Click to show internal directories.
Click to hide internal directories.