-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Namespace Behavior Public (#199)
* refactor Signed-off-by: Matthew F Leader <[email protected]> * add function description * add fn to exectuable workflow iface --------- Signed-off-by: Matthew F Leader <[email protected]>
- Loading branch information
Showing
4 changed files
with
51 additions
and
22 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,17 @@ | ||
package util | ||
|
||
import "go.flow.arcalot.io/pluginsdk/schema" | ||
|
||
// BuildNamespaceString creates a human-readable string representation of the | ||
// namespace scoped objects. | ||
func BuildNamespaceString(allNamespaces map[string]map[string]*schema.ObjectSchema) string { | ||
availableObjects := "" | ||
for namespace, objects := range allNamespaces { | ||
availableObjects += "\n\t" + namespace + ":" | ||
for objectID := range objects { | ||
availableObjects += " " + objectID | ||
} | ||
} | ||
availableObjects += "\n" | ||
return availableObjects | ||
} |
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
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
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