Documentation
¶
Overview ¶
Package api serves /api/v1/repos/{owner}/{repo}/pkgs/* — the silo-specific dependency index over its per-repo pkgs.sqlite3. Shapes match `git pkgs <cmd> --format=json` field-for-field so the CLI's output structs (re-exported by git-pkgs/index) can be reused as the response payloads.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiffEntry ¶
type DiffEntry struct {
Name string `json:"name"`
Ecosystem string `json:"ecosystem,omitempty"`
ManifestPath string `json:"manifest_path"`
DependencyType string `json:"dependency_type,omitempty"`
FromRequirement string `json:"from_requirement,omitempty"`
ToRequirement string `json:"to_requirement,omitempty"`
}
DiffEntry mirrors cmd/diff.go shape until the CLI is rewired onto the index package (SPEC-pkgs.md R9). One row per added/removed/updated dep.
type DiffResult ¶
type DiffResult struct {
Added []DiffEntry `json:"added,omitempty"`
Modified []DiffEntry `json:"modified,omitempty"`
Removed []DiffEntry `json:"removed,omitempty"`
}
DiffResult mirrors cmd/diff.go.
Click to show internal directories.
Click to hide internal directories.