github.com/cyverse/go-irodsclient@v0.13.2/fs/fs_system.go (about) 1 package fs 2 3 import ( 4 irods_fs "github.com/cyverse/go-irodsclient/irods/fs" 5 "github.com/cyverse/go-irodsclient/irods/types" 6 ) 7 8 // ListProcesses lists all processes 9 func (fs *FileSystem) ListProcesses(address string, zone string) ([]*types.IRODSProcess, error) { 10 conn, err := fs.metaSession.AcquireConnection() 11 if err != nil { 12 return nil, err 13 } 14 defer fs.metaSession.ReturnConnection(conn) 15 16 processes, err := irods_fs.StatProcess(conn, address, zone) 17 if err != nil { 18 return nil, err 19 } 20 21 return processes, nil 22 } 23 24 // ListAllProcesses lists all processes 25 func (fs *FileSystem) ListAllProcesses() ([]*types.IRODSProcess, error) { 26 return fs.ListProcesses("", "") 27 }