Documentation

Overview

    Package statx contains the structures describing request and response for statx request. See xrootd protocol specification (http://xrootd.org/doc/dev45/XRdv310.pdf, p. 113) for details. Note that only a limited number of flags is meaningful such as StatIsExecutable, StatIsDir, StatIsOther, StatIsOffline.

    Index

    Constants

    View Source
    const RequestID uint16 = 3022

      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 Request

      type Request struct {
      	Paths string // Paths is the new-line separated path list.
      	// contains filtered or unexported fields
      }

        Request holds open request parameters.

        func NewRequest

        func NewRequest(paths []string) *Request

          NewRequest forms a Request according to provided paths.

          func (Request) MarshalXrd

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

            MarshalXrd implements xrdproto.Marshaler.

            func (*Request) ReqID

            func (req *Request) ReqID() uint16

              ReqID implements xrdproto.Request.ReqID.

              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 Response

                  type Response struct {
                  	StatFlags []xrdfs.StatFlags
                  }

                    Response is a response for the statx request which contains the information about every requested path. Note that only limited number of flags is meaningful such as StatIsExecutable, StatIsDir, StatIsOther, StatIsOffline.

                    func (Response) MarshalXrd

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

                      MarshalXrd implements xrdproto.Marshaler.

                      func (*Response) RespID

                      func (resp *Response) RespID() uint16

                        RespID implements xrdproto.Response.RespID.

                        func (*Response) UnmarshalXrd

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

                          UnmarshalXrd implements xrdproto.Unmarshaler.

                          Source Files