fsck

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package fsck exposes the durable repository integrity-check use case and service.

Index

Constants

This section is empty.

Variables

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

func CheckRepository(stateDir string) (Result, error)

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

func NewService(stateDir string) Service

NewService returns an integrity-check service for stateDir.

func (Service) Check

func (s Service) Check(ctx context.Context) (Result, error)

Check honors cancellation and returns the complete integrity report.

type Store

type Store interface {
	Fsck() (Result, error)
}

Store provides the repository-level fsck operations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL