Package mkdir contains the structures describing mkdir request. See xrootd protocol specification (, p. 105) for details.



    View Source
    const RequestID uint16 = 3008

      RequestID is the id of the request, it is sent as part of message. See xrootd protocol specification for details:, 2.3 Client Request Format.


      This section is empty.


      This section is empty.


      type Options

      type Options uint8

        Options are the options to apply when path is created.

        const OptionsMakePath Options = 1

          OptionsMakePath indicates whether directory path should be created if it does not already exist. When a directory path is created, the directory permission specified in Mode is propagated along the newly created path.

          type Request

          type Request struct {
          	Options Options
          	Mode xrdfs.OpenMode
          	Path string
          	// contains filtered or unexported fields

            Request holds mkdir request parameters, such as the file path.

            func (Request) MarshalXrd

            func (req 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 (req *Request) UnmarshalXrd(rBuffer *xrdenc.RBuffer) error

                        UnmarshalXrd implements xrdproto.Unmarshaler.

                        Source Files