Documentation

Overview

    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

    View Source
    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.

      Variables

      This section is empty.

      Functions

      This section is empty.

      Types

      type DefaultResponse

      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

        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

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

                MarshalXrd implements xrdproto.Marshaler.

                func (*Request) Opaque

                func (req *Request) Opaque() string

                  Opaque implements xrdproto.FilepathRequest.Opaque.

                  func (*Request) ReqID

                  func (req *Request) ReqID() uint16

                    ReqID implements xrdproto.Request.ReqID.

                    func (*Request) SetOpaque

                    func (req *Request) SetOpaque(opaque string)

                      SetOpaque implements xrdproto.FilepathRequest.SetOpaque.

                      func (*Request) ShouldSign

                      func (req *Request) ShouldSign() bool

                        ShouldSign implements xrdproto.Request.ShouldSign.

                        func (*Request) UnmarshalXrd

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

                          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