headsvc

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("object header not found")

Functions

This section is empty.

Types

type ClientConstructor

type ClientConstructor interface {
	Get(clientcore.NodeInfo) (clientcore.Client, error)
}

type Prm

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

func (*Prm) WithAddress

func (p *Prm) WithAddress(v oid.Address) *Prm

type RemoteHeadPrm

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

RemoteHeadPrm groups remote header operation parameters.

func (*RemoteHeadPrm) WithNodeInfo

func (p *RemoteHeadPrm) WithNodeInfo(v netmap.NodeInfo) *RemoteHeadPrm

WithNodeInfo sets information about the remote node.

func (*RemoteHeadPrm) WithObjectAddress

func (p *RemoteHeadPrm) WithObjectAddress(v oid.Address) *RemoteHeadPrm

WithObjectAddress sets object address.

type RemoteHeader

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

RemoteHeader represents utility for getting the object header from a remote host.

func NewRemoteHeader

func NewRemoteHeader(keyStorage *util.KeyStorage, cache ClientConstructor) *RemoteHeader

NewRemoteHeader creates, initializes and returns new RemoteHeader instance.

func (*RemoteHeader) Head

func (h *RemoteHeader) Head(ctx context.Context, prm *RemoteHeadPrm) (*object.Object, error)

Head requests object header from the remote node.

Jump to

Keyboard shortcuts

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