Documentation ¶
Index ¶
- func Analyze(fileType types.LangType, filePath string, r xio.ReadSeekerAt, parser Parser) (*analyzer.AnalysisResult, error)
- func AnalyzePackage(fileType types.LangType, filePath string, r xio.ReadSeekerAt, parser Parser, ...) (*analyzer.AnalysisResult, error)
- func Parse(fileType types.LangType, filePath string, r io.Reader, parser Parser) (*types.Application, error)
- func ParsePackage(fileType types.LangType, filePath string, r xio.ReadSeekerAt, parser Parser, ...) (*types.Application, error)
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Analyze ¶
func Analyze(fileType types.LangType, filePath string, r xio.ReadSeekerAt, parser Parser) (*analyzer.AnalysisResult, error)
Analyze returns an analysis result of the lock file
func AnalyzePackage ¶
func AnalyzePackage(fileType types.LangType, filePath string, r xio.ReadSeekerAt, parser Parser, checksum bool) (*analyzer.AnalysisResult, error)
AnalyzePackage returns an analysis result of the package file other than lock files
func Parse ¶
func Parse(fileType types.LangType, filePath string, r io.Reader, parser Parser) (*types.Application, error)
Parse returns a parsed result of the lock file
func ParsePackage ¶
func ParsePackage(fileType types.LangType, filePath string, r xio.ReadSeekerAt, parser Parser, checksum bool) (*types.Application, error)
ParsePackage returns a parsed result of the package file
Types ¶
type Parser ¶
type Parser interface { // Parse parses the dependency file Parse(r xio.ReadSeekerAt) ([]types.Package, []types.Dependency, error) }
Click to show internal directories.
Click to hide internal directories.