Documentation
¶
Overview ¶
Package lfsgc plans LFS metadata garbage collection without moving object paths.
Index ¶
Constants ¶
View Source
const ( // MinAge is the shortest retention that still leaves a window for a push to // upload an LFS object before its git pointer lands. MinAge = 24 * time.Hour // DefaultAge matches the existing doctor check: a week is long enough that an // unreferenced object is not an in-flight upload. DefaultAge = 7 * 24 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RepoResult ¶
type RepoResult struct {
Repository string `json:"repository"`
Total int64 `json:"total"`
Orphaned int `json:"orphaned"`
Collected int `json:"collected"`
Deleted int `json:"deleted"`
Stopped bool `json:"stopped,omitempty"`
}
RepoResult is one repository after a scan.
type Report ¶
type Report struct {
Apply bool `json:"apply"`
DryRun bool `json:"dry_run"`
OlderThan string `json:"older_than"`
Repository string `json:"repository,omitempty"`
Repositories []RepoResult `json:"repositories"`
Orphaned int `json:"orphaned"`
Deleted int `json:"deleted"`
}
Report is the machine-readable result of a dry-run or an apply.
Click to show internal directories.
Click to hide internal directories.