github.com/cyverse/go-irodsclient@v0.13.2/fs/fs_ticket_restrictions.go (about)

     1  package fs
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  // IRODSTicketRestrictions contains irods ticket restriction information
     8  type IRODSTicketRestrictions struct {
     9  	// AllowedHosts is a list of allowed hosts
    10  	AllowedHosts []string
    11  	// AllowedUserName is a list of allowed user names
    12  	AllowedUserNames []string
    13  	// AllowedGroupNames is a list of allowed group names
    14  	AllowedGroupNames []string
    15  }
    16  
    17  // ToString stringifies the object
    18  func (ticket *IRODSTicketRestrictions) ToString() string {
    19  	return fmt.Sprintf("<IRODSTicketRestrictions %v %v %v>", ticket.AllowedHosts, ticket.AllowedUserNames, ticket.AllowedGroupNames)
    20  }