swift

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 BuildDependencyTree(params utils.AuditParams) (dependencyTree []*xrayUtils.GraphNode, uniqueDeps []string, err error)

func FixTechDependency

func FixTechDependency(dependencyName, dependencyVersion, fixVersion string, descriptorPaths ...string) error

func GetMainPackageName

func GetMainPackageName(currentDir string) (string, error)

func GetSwiftDependenciesGraph

func GetSwiftDependenciesGraph(data *Dependencies, dependencyMap map[string][]string, versionMap map[string]string)

func GetTechDependencyLocation

func GetTechDependencyLocation(directDependencyName, directDependencyVersion string, descriptorPaths ...string) ([]*sarif.Location, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL