Class FunctionUtils
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.legacy.function.utils.FunctionUtils
-
public class FunctionUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private static StringINVALID_FUNCTION_EXTENSION_VERSIONprivate static StringLOAD_BINDING_TEMPLATES_FAILprivate static StringLOAD_TEMPLATES_FAILprivate static PatternVERSION_PATTERN
-
Constructor Summary
Constructors Constructor Description FunctionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<FunctionTemplate>loadAllFunctionTemplates()static BindingTemplateloadBindingTemplate(String type)static FunctionExtensionVersionparseFunctionExtensionVersion(String version)static FunctionExtensionVersionparseFunctionExtensionVersionFromHostJson(String version)private static List<FunctionTemplate>parseTemplateJson(String templateJson)
-
-
-
Field Detail
-
LOAD_TEMPLATES_FAIL
private static final String LOAD_TEMPLATES_FAIL
- See Also:
- Constant Field Values
-
LOAD_BINDING_TEMPLATES_FAIL
private static final String LOAD_BINDING_TEMPLATES_FAIL
- See Also:
- Constant Field Values
-
INVALID_FUNCTION_EXTENSION_VERSION
private static final String INVALID_FUNCTION_EXTENSION_VERSION
- See Also:
- Constant Field Values
-
VERSION_PATTERN
private static final Pattern VERSION_PATTERN
-
-
Method Detail
-
parseFunctionExtensionVersion
public static FunctionExtensionVersion parseFunctionExtensionVersion(String version)
-
parseFunctionExtensionVersionFromHostJson
public static FunctionExtensionVersion parseFunctionExtensionVersionFromHostJson(String version)
-
loadBindingTemplate
public static BindingTemplate loadBindingTemplate(String type)
-
loadAllFunctionTemplates
public static List<FunctionTemplate> loadAllFunctionTemplates() throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
- Throws:
com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
-
parseTemplateJson
private static List<FunctionTemplate> parseTemplateJson(String templateJson) throws IOException
- Throws:
IOException
-
-