Documentation ¶
Index ¶
- Variables
- func AddRequiredFilenames(filenames []string)
- func Analyze(ctx context.Context, imageName string, opts ...types.DockerOption) (fileMap extractor.FileMap, err error)
- func AnalyzeFromFile(ctx context.Context, r io.ReadCloser) (fileMap extractor.FileMap, err error)
- func CheckPackage(pkg *Package) bool
- func GetLibraries(filesMap extractor.FileMap) (map[FilePath][]godeptypes.Library, error)
- func RegisterCommandAnalyzer(analyzer CommandAnalyzer)
- func RegisterLibraryAnalyzer(analyzer LibraryAnalyzer)
- func RegisterOSAnalyzer(analyzer OSAnalyzer)
- func RegisterPkgAnalyzer(analyzer PkgAnalyzer)
- func RequiredFilenames() []string
- type CommandAnalyzer
- type FilePath
- type LibraryAnalyzer
- type OS
- type OSAnalyzer
- type Package
- type PkgAnalyzer
- type SrcPackage
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 AddRequiredFilenames ¶
func AddRequiredFilenames(filenames []string)
func AnalyzeFromFile ¶
func CheckPackage ¶
func GetLibraries ¶
func RegisterCommandAnalyzer ¶
func RegisterCommandAnalyzer(analyzer CommandAnalyzer)
func RegisterLibraryAnalyzer ¶
func RegisterLibraryAnalyzer(analyzer LibraryAnalyzer)
func RegisterOSAnalyzer ¶
func RegisterOSAnalyzer(analyzer OSAnalyzer)
func RegisterPkgAnalyzer ¶
func RegisterPkgAnalyzer(analyzer PkgAnalyzer)
func RequiredFilenames ¶
func RequiredFilenames() []string
Types ¶
type CommandAnalyzer ¶
type LibraryAnalyzer ¶
type OSAnalyzer ¶
type Package ¶
type PkgAnalyzer ¶
type SrcPackage ¶
Click to show internal directories.
Click to hide internal directories.