Documentation ¶
Overview ¶
Package dirlist contains the structures describing request and response for dirlist request used to obtain the contents of a directory.
Index ¶
Constants ¶
const RequestID uint16 = 3004
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 { Options RequestOptions Path string // contains filtered or unexported fields }
Request holds the dirlist request parameters.
func NewRequest ¶
NewRequest forms a Request according to provided path.
func (Request) MarshalXrd ¶
MarshalXrd implements xrdproto.Marshaler.
func (*Request) ShouldSign ¶
ShouldSign implements xrdproto.Request.ShouldSign.
type RequestOptions ¶
type RequestOptions byte
RequestOptions specifies what should be returned as part of response.
const ( None RequestOptions = 0 // None specifies that no addition information except entry names is required. WithStatInfo RequestOptions = 2 // WithStatInfo specifies that stat information for every entry is required. )
type Response ¶
Response is a response for the dirlist request, which contains a slice of entries containing the entry name and the entry stat info, and a WithStatInfo flag indicating whether a request asked for a stat info.
func (Response) MarshalXrd ¶
MarshalXrd implements xrdproto.Marshaler.
func (*Response) UnmarshalXrd ¶
UnmarshalXrd implements xrdproto.Unmarshaler When stat information is supported by the server, the format is
".\n" "0 0 0 0\n" "dirname\n" "id size flags modtime\n" ... 0
Otherwise, the format is the following:
"dirname\n" ... 0
See xrootd protocol specification, page 45 for further details.