github.com/cyverse/go-irodsclient@v0.13.2/irods/types/file_handle.go (about)

     1  package types
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/cyverse/go-irodsclient/irods/common"
     7  )
     8  
     9  // IRODSFileHandle contains file handle
    10  type IRODSFileHandle struct {
    11  	FileDescriptor int
    12  	// Path has an absolute path to the data object
    13  	Path     string
    14  	OpenMode FileOpenMode
    15  	Resource string
    16  	Oper     common.OperationType
    17  }
    18  
    19  // ToString stringifies the object
    20  func (handle *IRODSFileHandle) ToString() string {
    21  	return fmt.Sprintf("<IRODSFileHandle %d %s %s %s %d>", handle.FileDescriptor, handle.Path, handle.OpenMode, handle.Resource, handle.Oper)
    22  }