Documentation
¶
Overview ¶
Package fsck exposes the durable repository integrity-check use case and service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCorrupt = repository.ErrFsckCorrupt
ErrCorrupt reports that Fsck found one or more integrity violations.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
type Diagnostic = repository.FsckDiagnostic
Diagnostic describes one deterministic integrity or maintenance finding.
type Error ¶
type Error = repository.FsckError
Error carries the structured report for a corrupt repository.
type Result ¶
type Result = repository.FsckResult
Result is the complete report produced by an integrity check.
func CheckRepository ¶
CheckRepository traverses every durable branch reference and checks the reachable immutable objects and mutable control state without repairing it.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service checks one durable repository state directory.
func NewService ¶
NewService returns an integrity-check service for stateDir.
Click to show internal directories.
Click to hide internal directories.