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

     1  package types
     2  
     3  import (
     4  	"fmt"
     5  	"time"
     6  )
     7  
     8  // IRODSResource describes a resource host
     9  type IRODSResource struct {
    10  	RescID   int64
    11  	Name     string
    12  	Zone     string
    13  	Type     string
    14  	Class    string
    15  	Location string
    16  
    17  	// Path has the path string of the resource
    18  	Path string
    19  
    20  	// Context has the context string
    21  	Context 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 (res *IRODSResource) ToString() string {
    31  	return fmt.Sprintf("<IRODSResource %s: %v>", res.Name, res)
    32  }