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.
// Returns [apistatus.ErrObjectAlreadyRemoved] if object exists but marked
// for removal.
Head(ctx context.Context, addr oid.Address) (*object.Object, error)
// SearchOne returns objects ID that satisfy provided search filters with limit 1 and
// any error that does not allow processing operation.
// If an object is not found, it returns zero ID.
SearchOne(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 ¶
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.
Click to show internal directories.
Click to hide internal directories.