Files
syft/syft/pkg/rockspec.go
T
Alex Goodman a77d24e379 Improve struct and field comments and incorporate into json schema (#4252)
* improve struct and field comments and incorporate into json schema

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* address review feedback

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

---------

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
2025-10-03 17:01:56 +00:00

26 lines
779 B
Go

package pkg
// LuaRocksPackage represents a Lua package managed by the LuaRocks package manager with metadata from .rockspec files.
type LuaRocksPackage struct {
// Name is the package name as found in the .rockspec file
Name string `json:"name"`
// Version is the package version as found in the .rockspec file
Version string `json:"version"`
// License is license identifier
License string `json:"license"`
// Homepage is project homepage URL
Homepage string `json:"homepage"`
// Description is a human-readable package description
Description string `json:"description"`
// URL is the source download URL
URL string `json:"url"`
// Dependencies are the map of dependency names to version constraints
Dependencies map[string]string `json:"dependencies"`
}