Interface DependencyVisitor
-
- All Known Implementing Classes:
DefaultDependencyVisitor
public interface DependencyVisitor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GolangDependencySetvisitExternalDependencies(ResolvedDependency dependency, java.io.File rootDir, java.lang.String configuration)Visits dependencies managed by a external package management tool such as godep, govendor, etc.GolangDependencySetvisitSourceCodeDependencies(ResolvedDependency dependency, java.io.File rootDir, java.lang.String configuration)Analyze the imports in source code (all .go files in root directory except vendor) to get dependencies.GolangDependencySetvisitVendorDependencies(ResolvedDependency dependency, java.io.File rootDir, java.lang.String configuration)Visits dependencies in vendor.
-
-
-
Method Detail
-
visitExternalDependencies
GolangDependencySet visitExternalDependencies(ResolvedDependency dependency, java.io.File rootDir, java.lang.String configuration)
Visits dependencies managed by a external package management tool such as godep, govendor, etc. Usually, it's determined by analyzing "lock file" of that tool.- Parameters:
dependency- The dependency to visitrootDir- Root directory of a packageconfiguration- Current context,GolangConfiguration.BUILDorGolangConfiguration.TEST- Returns:
- Dependencies managed by external package management tools
-
visitVendorDependencies
GolangDependencySet visitVendorDependencies(ResolvedDependency dependency, java.io.File rootDir, java.lang.String configuration)
Visits dependencies in vendor.- Parameters:
dependency- The dependency to visitrootDir- Root directory of a packageconfiguration- Current context,GolangConfiguration.BUILDorGolangConfiguration.TEST- Returns:
- Dependencies in vendor directory
-
visitSourceCodeDependencies
GolangDependencySet visitSourceCodeDependencies(ResolvedDependency dependency, java.io.File rootDir, java.lang.String configuration)
Analyze the imports in source code (all .go files in root directory except vendor) to get dependencies.- Parameters:
dependency- The dependency to visitrootDir- Root directory of a packageconfiguration- Current context, build or test- Returns:
- All imported package.
-
-