split

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 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, childrenFromLink []object.MeasuredObject) 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)

Jump to

Keyboard shortcuts

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