Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebianGetDependencies ¶
DebianGetDependencies parses the ldd output and figure out the required dependencies in term of Debian packages
func RPMGetDependencies ¶
RPMGetDependencies parses the ldd output and figure out the required dependencies in term of Debian packages
Types ¶
type GetDependenciesFn ¶
GetDependenciesFn is a function "pointer" for a distribution-specific function that parses the output of ldd and find the binary packages associated to the dependencies expressed in the ldd output.
type Module ¶
type Module struct {
GetDependencies GetDependenciesFn
}
Module represents a distribution-specific module that can handle output from ldd.
func DebianLoad ¶
DebianLoad is the function called to see if the module is usable on the current system. If so, the module structure returned has all the functions required for Debian based systems.
func RPMLoad ¶
RpmLoad is the function called to see if the module is usable on the current system. If so, the module structure returned has all the functions required for RPM-based systems.
func (*Module) GetPackageDependenciesForFile ¶
GetPackageDependenciesForFile finds all the binary-package dependencies for a specific file, by running ldd and the appropriate module for the target linux distribution