Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnknownOS occurs when unknown OS is analyzed. ErrUnknownOS = xerrors.New("unknown OS") // ErrPkgAnalysis occurs when the analysis of packages is failed. ErrPkgAnalysis = xerrors.New("failed to analyze packages") // ErrNoPkgsDetected occurs when the required files for an OS package manager are not detected ErrNoPkgsDetected = xerrors.New("no packages detected") )
Functions ¶
func CheckPackage ¶
func RegisterAnalyzer ¶
func RegisterAnalyzer(analyzer analyzer)
func RegisterConfigAnalyzer ¶
func RegisterConfigAnalyzer(analyzer configAnalyzer)
Types ¶
type AnalysisResult ¶
type AnalysisResult struct { OS *types.OS PackageInfos []types.PackageInfo Applications []types.Application // contains filtered or unexported fields }
func AnalyzeFile ¶
func (*AnalysisResult) Merge ¶
func (r *AnalysisResult) Merge(new *AnalysisResult)
type AnalyzeReturn ¶
func (AnalyzeReturn) ConvertToResult ¶
func (r AnalyzeReturn) ConvertToResult(analyzerType, filePath string) *AnalysisResult
Click to show internal directories.
Click to hide internal directories.