From fb1b44e1d15e62f5dace124e4cb98d4fa36c2854 Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 17 Jan 2025 10:56:45 +0100 Subject: [PATCH] light modification --- tools/enums.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/enums.go b/tools/enums.go index 9f61c9a..c82bfe5 100644 --- a/tools/enums.go +++ b/tools/enums.go @@ -92,3 +92,7 @@ func (d DataType) String() string { // String - Returns the string name of the d func (d DataType) EnumIndex() int { return int(d) } + +func DataTypeList() []DataType { + return []DataType{DATA_RESOURCE, PROCESSING_RESOURCE, STORAGE_RESOURCE, COMPUTE_RESOURCE, WORKFLOW_RESOURCE, WORKFLOW, WORKFLOW_EXECUTION, WORKSPACE, RESOURCE_MODEL, PEER, COLLABORATIVE_AREA, RULE, BOOKING, WORKFLOW_HISTORY, WORKSPACE_HISTORY, ORDER, BUYING_STATUS} +}