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

     1  package types
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  // IRODSDataObject contains irods data object information
     8  type IRODSDataObject struct {
     9  	ID           int64
    10  	CollectionID int64
    11  	// Path has an absolute path to the data object
    12  	Path string
    13  	// Name has only the name part of the path
    14  	Name string
    15  	// Size has the file size
    16  	Size int64
    17  	// DataType has the type of the file,
    18  	DataType string
    19  	// Replicas has replication information
    20  	Replicas []*IRODSReplica
    21  }
    22  
    23  // ToString stringifies the object
    24  func (obj *IRODSDataObject) ToString() string {
    25  	return fmt.Sprintf("<IRODSDataObject %d %s %d %s>", obj.ID, obj.Path, obj.Size, obj.DataType)
    26  }