Documentation
¶
Index ¶
- Constants
- func BuildDependencyTree(params utils.AuditParams) (dependencyTree []*xrayUtils.GraphNode, uniqueDeps []string, err error)
- func FixTechDependency(dependencyName, dependencyVersion, fixVersion string, ...) error
- func GetMainPackageName(currentDir string) (string, error)
- func GetSwiftDependenciesGraph(data *Dependencies, dependencyMap map[string][]string, ...)
- func GetTechDependencyLocation(directDependencyName, directDependencyVersion string, ...) ([]*sarif.Location, error)
- type Dependencies
- type SwiftCommand
Constants ¶
View Source
const ( // VersionForMainModule - We don't have information in swift on the current package, or main module, we only have information on its // dependencies. VersionForMainModule = "0.0.0" VERSION_SYNTAX_TYPE_INDEX = 1 EXACT_VERSION_INDEX = 2 FROM_VERSION_INDEX = 3 START_RANGE_INDEX = 4 END_RANGE_INDEX = 5 )
Variables ¶
This section is empty.
Functions ¶
func BuildDependencyTree ¶
func FixTechDependency ¶
func GetMainPackageName ¶
func GetSwiftDependenciesGraph ¶
func GetSwiftDependenciesGraph(data *Dependencies, dependencyMap map[string][]string, versionMap map[string]string)
Types ¶
type Dependencies ¶
type Dependencies struct { Name string `json:"url,omitempty"` Version string `json:"version,omitempty"` Dependencies []*Dependencies `json:"dependencies,omitempty"` }
func GetDependenciesData ¶
func GetDependenciesData(exePath, currentDir string) (*Dependencies, error)
type SwiftCommand ¶
type SwiftCommand struct {
// contains filtered or unexported fields
}
func (*SwiftCommand) PreparePrerequisites ¶
func (sc *SwiftCommand) PreparePrerequisites() error
Click to show internal directories.
Click to hide internal directories.