pipeline_utils.go
pipeline_utils.go - Overview
-
Overview This file provides utility functions for working with integration pipelines, including generating aliases and extracting integration IDs from pipeline aliases.
-
Detailed Documentation
IntegrationPipelineIdSeparator
- Purpose: Defines the separator string used in the alias for integration pipelines.
- Type:
const string
- Value:
"--"
AliasForIntegrationPipeline
- Purpose: Generates an alias for an integration pipeline based on the integration ID and pipeline name.
- Parameters:
integrationId
(string): The ID of the integration.pipelineName
(string): The name of the pipeline.
- Returns:
string
: The generated alias for the integration pipeline.
IntegrationIdForPipeline
- Purpose: Extracts the integration ID from a pipeline's alias if the pipeline is associated with an installed integration.
- Parameters:
p
(pipelinetypes.GettablePipeline): The pipeline object.
- Returns:
*string
: A pointer to the integration ID string ifp
is a pipeline for an installed integration; otherwise, returnsnil
.
- Code Examples
None
- Clarity and Accuracy
Documentation is based on code analysis.
- Markdown & MDX Perfection
Markdown is properly formatted.
- Edge Cases To Avoid Breaking MDX
MDX-incompatible elements are avoided.
- Getting Started Relevance Include in Getting Started: NO