| "veyron.io/veyron/veyron2/ipc" |
| "veyron.io/veyron/veyron2/naming" |
| "veyron.io/veyron/veyron2/rt" |
| // GlobName calls __Glob on the given object with the given pattern and returns |
| // a sorted list of matching object names, or an error. |
| func GlobName(name, pattern string) ([]string, error) { |
| call, err := rt.R().Client().StartCall(rt.R().NewContext(), name, ipc.GlobMethod, []interface{}{pattern}) |
| var me naming.VDLMountEntry |
| switch err := call.Recv(&me); err { |
| results = append(results, me.Name) |
| if ferr := call.Finish(&err); ferr != nil { |