GetLabelForLabelsToolset returns the same GetLabel tool but registered in the labels toolset. This provides conformance with the original behavior where get_label was in both toolsets.
(t translations.TranslationHelperFunc)
| 118 | // GetLabelForLabelsToolset returns the same GetLabel tool but registered in the labels toolset. |
| 119 | // This provides conformance with the original behavior where get_label was in both toolsets. |
| 120 | func GetLabelForLabelsToolset(t translations.TranslationHelperFunc) inventory.ServerTool { |
| 121 | tool := GetLabel(t) |
| 122 | tool.Toolset = ToolsetLabels |
| 123 | return tool |
| 124 | } |
| 125 | |
| 126 | // ListLabels lists labels from a repository |
| 127 | func ListLabels(t translations.TranslationHelperFunc) inventory.ServerTool { |