Class PipelineExpressionFunctionProvider
java.lang.Object
com.netflix.spinnaker.orca.front50.pipeline.PipelineExpressionFunctionProvider
- All Implemented Interfaces:
com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider,com.netflix.spinnaker.kork.expressions.ExpressionFunctionProvider,com.netflix.spinnaker.kork.plugins.api.internal.SpinnakerExtensionPoint,org.pf4j.ExtensionPoint
@Component
public class PipelineExpressionFunctionProvider
extends Object
implements com.netflix.spinnaker.kork.expressions.ExpressionFunctionProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider
com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider.FunctionDefinition, com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider.FunctionDocumentation, com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider.FunctionParameter, com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider.Functions, com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider.FunctionUsageExample -
Method Summary
Modifier and TypeMethodDescription@NotNull com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider.Functions@Nullable Stringstatic StringpipelineId(com.netflix.spinnaker.orca.api.pipeline.models.PipelineExecution execution, String pipelineName) Function to convert pipeline name to pipeline ID (within current application)static StringpipelineIdInApplication(com.netflix.spinnaker.orca.api.pipeline.models.PipelineExecution execution, String pipelineName, String applicationName) Function to convert pipeline name/application name to pipeline IDstatic StringpipelineIdOrNull(com.netflix.spinnaker.orca.api.pipeline.models.PipelineExecution execution, String pipelineName) Function to convert pipeline name to pipeline ID (within current application), will return Null if pipeline ID not foundMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.netflix.spinnaker.kork.plugins.api.internal.SpinnakerExtensionPoint
getExtensionClass, getPluginId
-
Method Details
-
getNamespace
- Specified by:
getNamespacein interfacecom.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider
-
getFunctions
@NotNull public @NotNull com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider.Functions getFunctions()- Specified by:
getFunctionsin interfacecom.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider
-
pipelineId
public static String pipelineId(com.netflix.spinnaker.orca.api.pipeline.models.PipelineExecution execution, String pipelineName) Function to convert pipeline name to pipeline ID (within current application)- Parameters:
execution- the current executionpipelineName- name of the pipeline to lookup- Returns:
- the id of the pipeline or exception if pipeline not found
-
pipelineIdOrNull
public static String pipelineIdOrNull(com.netflix.spinnaker.orca.api.pipeline.models.PipelineExecution execution, String pipelineName) Function to convert pipeline name to pipeline ID (within current application), will return Null if pipeline ID not found- Parameters:
execution- the current executionpipelineName- name of the pipeline to lookup- Returns:
- the id of the pipeline or null if pipeline not found
-
pipelineIdInApplication
public static String pipelineIdInApplication(com.netflix.spinnaker.orca.api.pipeline.models.PipelineExecution execution, String pipelineName, String applicationName) Function to convert pipeline name/application name to pipeline ID- Parameters:
execution- the current executionpipelineName- name of the pipeline to lookupapplicationName- name of the application- Returns:
- the id of the pipeline or null if pipeline not found
-