tombstone

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectSource

type ObjectSource interface {
	// Head returns object by its address and any error that does not
	// allow processing operation. Must return *object.SplitInfoError
	// if an object is split, NOT the original parent header.
	Head(ctx context.Context, addr oid.Address) (*object.Object, error)

	// Search returns objects that satisfy provided search filters and
	// any error that does not allow processing operation.
	Search(ctx context.Context, cnr cid.ID, filter object.SearchFilters) ([]oid.ID, error)
}

ObjectSource describes objects available in the NeoFS.

type Verifier

type Verifier struct {
	// contains filtered or unexported fields
}

Verifier implements object.TombVerifier interface.

func NewVerifier

func NewVerifier(objSource ObjectSource) *Verifier

NewVerifier returns Verifier that ready to Verifier.VerifyTomb. Get and Search services must be non-nil, otherwise stable work is not guaranteed.

func (*Verifier) VerifyTomb

func (v *Verifier) VerifyTomb(ctx context.Context, cnr cid.ID, t object.Tombstone) error

VerifyTomb verifies tombstone. Checks that it does not store child object of a finished root (user's) object. Only child objects without a link object are acceptable for partial removal (as a garbage collection routine). Return any error that does not allow verification.

Jump to

Keyboard shortcuts

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