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

     1  package types
     2  
     3  import (
     4  	"fmt"
     5  	"time"
     6  )
     7  
     8  // IRODSReplica contains irods data object replication information
     9  type IRODSReplica struct {
    10  	Number int64
    11  
    12  	// Owner has the owner's name
    13  	Owner string
    14  
    15  	Checksum     *IRODSChecksum
    16  	Status       string
    17  	ResourceName string
    18  
    19  	// Path has an absolute path to the data object
    20  	Path              string
    21  	ResourceHierarchy string
    22  
    23  	// CreateTime has creation time
    24  	CreateTime time.Time
    25  	// ModifyTime has last modified time
    26  	ModifyTime time.Time
    27  }
    28  
    29  // ToString stringifies the object
    30  func (obj *IRODSReplica) ToString() string {
    31  	return fmt.Sprintf("<IRODSReplica %d %s %s %s %s>", obj.Number, obj.Status, obj.ResourceName, obj.CreateTime, obj.ModifyTime)
    32  }