internal

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyResponseKeyV2

func VerifyResponseKeyV2(expectedKey []byte, resp interface {
	GetVerifyHeader() *protosession.ResponseVerificationHeader
}) error

VerifyResponseKeyV2 checks if response is signed with expected key. Returns client.ErrWrongPublicKey if not.

Types

type HeaderWriter added in v0.39.1

type HeaderWriter interface {
	// WriteHeader writes object header w/ payload part.
	// The payload of the object may be incomplete.
	//
	// Must be called exactly once. Control remains with the caller.
	// Missing a call or re-calling can lead to undefined behavior
	// that depends on the implementation.
	//
	// Must not be called after Close call.
	WriteHeader(*object.Object) error
}

HeaderWriter is an interface of target component to write object header.

type Target added in v0.39.1

type Target interface {
	HeaderWriter
	// Writer writes object payload chunk.
	//
	// Can be called multiple times.
	//
	// Must not be called after Close call.
	io.Writer

	// Close is used to finish object writing.
	//
	// Close must return ID of the object
	// that has been written.
	//
	// Must be called no more than once. Control remains with the caller.
	// Re-calling can lead to undefined behavior
	// that depends on the implementation.
	Close() (oid.ID, error)
}

Target is an interface of the object writer.

Jump to

Keyboard shortcuts

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