github.com/cyverse/go-irodsclient@v0.13.2/irods/types/collection.go (about) 1 package types 2 3 import ( 4 "fmt" 5 "time" 6 ) 7 8 // IRODSCollection contains irods collection information 9 type IRODSCollection struct { 10 ID int64 11 // Path has an absolute path to the collection 12 Path string 13 // Name has only the name part of the path 14 Name string 15 // Owner has the owner's name 16 Owner string 17 // CreateTime has creation time 18 CreateTime time.Time 19 // ModifyTime has last modified time 20 ModifyTime time.Time 21 } 22 23 // ToString stringifies the object 24 func (coll *IRODSCollection) ToString() string { 25 return fmt.Sprintf("<IRODSCollection %d %s %s %s>", coll.ID, coll.Path, coll.CreateTime, coll.ModifyTime) 26 }