hep: go-hep.org/x/hep/xrootd/xrdproto/stat Index | Files

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

Package Files

stat.go

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.

type DefaultResponse Uses

type DefaultResponse struct {
    xrdfs.EntryStat
}

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 Uses

func (resp *DefaultResponse) RespID() uint16

RespID implements xrdproto.Response.RespID.

type Options Uses

type Options uint8

Options are stat processing options.

const (
    OptionsVFS Options = 1 // OptionsVFS indicates that virtual file system information is requested.
)

type Request Uses

type Request struct {
    Options Options

    FileHandle xrdfs.FileHandle
    Path       string
    // contains filtered or unexported fields
}

Request holds open request parameters.

func (Request) MarshalXrd Uses

func (o Request) MarshalXrd(wBuffer *xrdenc.WBuffer) error

MarshalXrd implements xrdproto.Marshaler.

func (*Request) Opaque Uses

func (req *Request) Opaque() string

Opaque implements xrdproto.FilepathRequest.Opaque.

func (*Request) ReqID Uses

func (req *Request) ReqID() uint16

ReqID implements xrdproto.Request.ReqID.

func (*Request) SetOpaque Uses

func (req *Request) SetOpaque(opaque string)

SetOpaque implements xrdproto.FilepathRequest.SetOpaque.

func (*Request) ShouldSign Uses

func (req *Request) ShouldSign() bool

ShouldSign implements xrdproto.Request.ShouldSign.

func (*Request) UnmarshalXrd Uses

func (o *Request) UnmarshalXrd(rBuffer *xrdenc.RBuffer) error

UnmarshalXrd implements xrdproto.Unmarshaler.

type VirtualFSResponse Uses

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 Uses

func (resp *VirtualFSResponse) RespID() uint16

RespID implements xrdproto.Response.RespID.

Package stat imports 3 packages (graph) and is imported by 2 packages. Updated 2018-08-02. Refresh now. Tools for package owners.