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

     1  package types
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  // IRODSFileLockHandle contains file lock handle
     8  type IRODSFileLockHandle struct {
     9  	FileDescriptor int
    10  	// Path has an absolute path to the data object
    11  	Path     string
    12  	OpenMode FileOpenMode
    13  	Type     DataObjectLockType
    14  	Command  DataObjectLockCommand
    15  }
    16  
    17  // ToString stringifies the object
    18  func (handle *IRODSFileLockHandle) ToString() string {
    19  	return fmt.Sprintf("<IRODSFileLockHandle %d %s %s %s %s>", handle.FileDescriptor, handle.Path, handle.OpenMode, handle.Type, handle.Command)
    20  }