repair

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIPar2

type CLIPar2 struct {
	BinaryPath string
}

func NewCLIPar2

func NewCLIPar2() (*CLIPar2, error)

func (*CLIPar2) Repair

func (c *CLIPar2) Repair(ctx context.Context, path string) error

func (*CLIPar2) Verify

func (c *CLIPar2) Verify(ctx context.Context, path string) (bool, error)

type Repairer

type Repairer interface {
	// Verify checks if the file in the directory are healthy.
	// Returns true if healthy, false if repair is needed.
	Verify(path string) (bool, error)

	// Repair attempts to fix the files using available parity volumes.
	Repair(path string) error
}

Repairer defines the behavior for verifying and fixing downloads

Jump to

Keyboard shortcuts

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