package stat
import "go-hep.org/x/hep/xrootd/xrdproto/stat"
Package stat contains the structures describing request and response for stat request. See xrootd protocol specification (http://xrootd.org/doc/dev45/XRdv310.pdf, p. 113) for details.
Index ¶
- Constants
- type DefaultResponse
- type Options
- type Request
- func (o Request) MarshalXrd(wBuffer *xrdenc.WBuffer) error
- func (req *Request) Opaque() string
- func (req *Request) ReqID() uint16
- func (req *Request) SetOpaque(opaque string)
- func (req *Request) ShouldSign() bool
- func (o *Request) UnmarshalXrd(rBuffer *xrdenc.RBuffer) error
- type VirtualFSResponse
Constants ¶
const RequestID uint16 = 3017
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 DefaultResponse ¶
DefaultResponse is a response for the stat request which contains stat information such as: the OS-dependent identifier, the size of the data, the entry attributes and the modification time.
func (*DefaultResponse) RespID ¶
func (resp *DefaultResponse) RespID() uint16
RespID implements xrdproto.Response.RespID.
type Options ¶
type Options uint8
Options are stat processing options.
const ( OptionsVFS Options = 1 // OptionsVFS indicates that virtual file system information is requested. )
type Request ¶
type Request struct { Options Options FileHandle xrdfs.FileHandle Path string // contains filtered or unexported fields }
Request holds open request parameters.
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.
type VirtualFSResponse ¶
type VirtualFSResponse struct { xrdfs.VirtualFSStat }
VirtualFSResponse is a response for the stat request which contains virtual file system stat information such as: nrw - the number of nodes that can provide read/write access, frw - the size of the largest contiguous area of r/w free space, urw - the percent utilization of the partition represented by frw, nstg - the number of nodes that can provide staging access, fstg - the size of the largest contiguous area of staging free space, ustg - the percent utilization of the partition represebted by fstg,
func (*VirtualFSResponse) RespID ¶
func (resp *VirtualFSResponse) RespID() uint16
RespID implements xrdproto.Response.RespID.
Source Files ¶
stat.go
- Version
- v0.36.0 (latest)
- Published
- Nov 15, 2024
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 4 days ago –
Tools for package owners.