package truncate
import "go-hep.org/x/hep/xrootd/xrdproto/truncate"
Package truncate contains the structures describing truncate request. See xrootd protocol specification (http://xrootd.org/doc/dev45/XRdv310.pdf, p. 121) for details.
Index ¶
Constants ¶
const RequestID uint16 = 3028
RequestID is the id of the request, it is sent as part of message. See xrootd protocol specification for details: http://xrootd.org/doc/dev45/XRdv310.pdf, 2.3 Client Request Format.
Types ¶
type Request ¶
type Request struct { Handle xrdfs.FileHandle Size int64 Path string // contains filtered or unexported fields }
Request holds truncate request parameters. Either the Handle or the Path should be specified to identify the file.
func (Request) MarshalXrd ¶
MarshalXrd implements xrdproto.Marshaler.
func (*Request) Opaque ¶
Opaque implements xrdproto.FilepathRequest.Opaque.
func (*Request) ReqID ¶
ReqID implements xrdproto.Request.ReqID.
func (*Request) SetOpaque ¶
SetOpaque implements xrdproto.FilepathRequest.SetOpaque.
func (*Request) ShouldSign ¶
ShouldSign implements xrdproto.Request.ShouldSign.
func (*Request) UnmarshalXrd ¶
UnmarshalXrd implements xrdproto.Unmarshaler.
Source Files ¶
truncate.go
- Version
- v0.36.0 (latest)
- Published
- Nov 15, 2024
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 3 days ago –
Tools for package owners.