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

package truncate

import "go-hep.org/x/hep/xrootd/xrdproto/truncate"

Package truncate contains the structures describing truncate request. See xrootd protocol specification (http://xrootd.org/doc/dev45/XRdv310.pdf, p. 121) for details.


Package Files



const RequestID uint16 = 3028

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 Request Uses

type Request struct {
    Handle xrdfs.FileHandle
    Size   int64

    Path string
    // contains filtered or unexported fields

Request holds truncate request parameters. Either the Handle or the Path should be specified to identify the file.

func (Request) MarshalXrd Uses

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

UnmarshalXrd implements xrdproto.Unmarshaler.

Package truncate imports 3 packages (graph) and is imported by 2 packages. Updated 2019-05-31. Refresh now. Tools for package owners.