List returns the names of modules belonging to this application.
(c context.Context)
| 21 | |
| 22 | // List returns the names of modules belonging to this application. |
| 23 | func List(c context.Context) ([]string, error) { |
| 24 | req := &pb.GetModulesRequest{} |
| 25 | res := &pb.GetModulesResponse{} |
| 26 | err := internal.Call(c, "modules", "GetModules", req, res) |
| 27 | return res.Module, err |
| 28 | } |
| 29 | |
| 30 | // NumInstances returns the number of instances of the given module/version. |
| 31 | // If either argument is the empty string it means the default. |