Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConstructor ¶ added in v0.18.0
type ClientConstructor interface {
Get(clientcore.NodeInfo) (clientcore.Client, error)
}
type RemoteHeadPrm ¶
type RemoteHeadPrm struct {
// contains filtered or unexported fields
}
RemoteHeadPrm groups remote header operation parameters.
func (*RemoteHeadPrm) WithIDVerification ¶ added in v0.50.0
func (p *RemoteHeadPrm) WithIDVerification(f bool)
WithIDVerification specifies whether to check object ID match.
func (*RemoteHeadPrm) WithNodeInfo ¶ added in v0.26.0
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.
func (*RemoteHeadPrm) WithXHeaders ¶ added in v0.50.0
func (p *RemoteHeadPrm) WithXHeaders(xs []string)
WithXHeaders sets X-headers.
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) GetRange ¶ added in v0.50.0
func (h *RemoteHeader) GetRange(ctx context.Context, node netmap.NodeInfo, cnr cid.ID, id oid.ID, ln, off uint64, xs []string) (io.ReadCloser, error)
GetRange requests object payload range from the remote node.
func (*RemoteHeader) Head ¶
func (h *RemoteHeader) Head(ctx context.Context, prm *RemoteHeadPrm) (*object.Object, error)
Head requests object header from the remote node. Returns:
- apistatus.ErrObjectNotFound error if the requested object is missing
- apistatus.ErrNodeUnderMaintenance error if remote node is currently under maintenance
Click to show internal directories.
Click to hide internal directories.