-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Find and Invoke Slurm APIs using reflect to avoid having version spec…
…ific code
- Loading branch information
Showing
2 changed files
with
143 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package slurm | ||
|
||
// Method names used in the Slurm API | ||
const ( | ||
methodPostNode = "PostNode" | ||
methodPing = "Ping" | ||
) | ||
|
||
// withExecuteSuffix appends "Execute" to the given method name. | ||
// For example, "PostNode" becomes "PostNodeExecute". | ||
func withExecuteSuffix(method string) string { | ||
return method + "Execute" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters