Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
type Dependencies []Dependency
func (Dependencies) Len ¶
func (deps Dependencies) Len() int
func (Dependencies) Less ¶
func (deps Dependencies) Less(i, j int) bool
func (Dependencies) Swap ¶
func (deps Dependencies) Swap(i, j int)
type Dependency ¶
type ExternalRef ¶
type Identifier ¶
type Identifier struct {
UID string `json:"uid,omitempty"`
}
Identifier uniquely identifies a package
type LangType ¶
type LangType string
LangType represents the type of package/language
const ( Conan LangType = "conan" DotNetCore LangType = "dotnet-core" GoModule LangType = "go-module" GoBinary LangType = "go-binary" Jar LangType = "jar" Pom LangType = "pom" Gradle LangType = "gradle" Sbt LangType = "sbt" Conda LangType = "conda" RustBinary LangType = "rust-binary" Cargo LangType = "cargo" Swift LangType = "swift" Cocoapods LangType = "cocoapods" Pub LangType = "pub" Hex LangType = "hex" NodePkg LangType = "node-pkg" Pnpm LangType = "pnpm" Yarn LangType = "yarn" NuGet LangType = "nuget" Composer LangType = "composer" Poetry LangType = "poetry" PyLock LangType = "pylock" Bun LangType = "bun" Uv LangType = "uv" Bundler LangType = "bundler" Npm LangType = "npm" Pip LangType = "pip" )
type Library ¶
type Library struct {
ID string `json:",omitempty"`
Name string
Version string
Dev bool
Indirect bool `json:",omitempty"`
License string `json:",omitempty"`
ExternalReferences []ExternalRef `json:",omitempty"`
Locations Locations `json:",omitempty"`
FilePath string `json:",omitempty"` // Required to show nested jars
}
type Package ¶
type Package struct {
ID string `json:",omitempty"`
Name string `json:",omitempty"`
Version string `json:",omitempty"`
LangType LangType `json:",omitempty"`
Locations Locations `json:",omitempty"`
Relationship Relationship `json:",omitempty"`
DependsOn []string `json:",omitempty"`
ExternalReferences []ExternalRef `json:",omitempty"`
Licenses []string `json:",omitempty"`
Dev bool `json:",omitempty"`
Indirect bool `json:",omitempty"`
Identifier Identifier `json:",omitempty"`
Module bool `json:",omitempty"`
FilePath string `json:",omitempty"`
}
Package represents a dependency package
type Parser ¶
type Parser interface {
// Parse parses the dependency file
Parse(r xio.ReadSeekerAt) ([]Library, []Dependency, error)
}
type Relationship ¶
type Relationship string
Relationship represents the dependency relationship
const ( RelationshipRoot Relationship = "root" RelationshipDirect Relationship = "direct" RelationshipIndirect Relationship = "indirect" RelationshipUnknown Relationship = "unknown" RelationshipWorkspace Relationship = "workspace" )
Click to show internal directories.
Click to hide internal directories.