split

package
v0.58.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

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

Verifier implements object.SplitVerifier interface.

func NewVerifier

func NewVerifier(get *getsvc.Service) *Verifier

NewVerifier returns Verifier that ready to Verifier.VerifySplit. Get service must be non-nil, otherwise stable work is not guaranteed.

func (*Verifier) VerifySplit

func (v *Verifier) VerifySplit(ctx context.Context, cnr cid.ID, firstID oid.ID, o *object.Object) error

VerifySplit verifies split chains:

  1. Children should be ordered correctly (in the sense of a linked list child objects compose)
  2. NeoFS should answer to the HEAD requests with children whose object size corresponds to the link's info
  3. Every child should have a provided first object in its split header (the first object itself is an exception)
  4. The last child should contain the same parent as the link object.
  5. Sum of child lengths should match the parent payload length.

Jump to

Keyboard shortcuts

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