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 ¶ added in v0.18.0
type RemoteHeadPrm ¶
type RemoteHeadPrm struct {
// contains filtered or unexported fields
}
RemoteHeadPrm groups remote header operation parameters.
func (*RemoteHeadPrm) WithNodeAddress ¶
func (p *RemoteHeadPrm) WithNodeAddress(v *network.Address) *RemoteHeadPrm
WithNodeAddress sets network address of the remote node.
func (*RemoteHeadPrm) WithObjectAddress ¶
func (p *RemoteHeadPrm) WithObjectAddress(v *objectSDK.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.
Click to show internal directories.
Click to hide internal directories.