๐CapabilitiesResource
This endpoint will return information about what are the capabilities of the backend API of Kaoto.
For example, the supported DSLs.
๐Methods
Method | Returns | Description |
---|---|---|
getAll() |
Capabilities |
Returns information of all the supported capabilities. |
๐
๐Capabilities
Property | Type | Description |
---|---|---|
dsls
|
๐
๐LanguageService
Method | Returns | Description |
---|---|---|
getAll() |
Map |
Returns the supported languages. |
๐DeploymentsResource
This endpoint will interact with the cluster starting, stopping, and listing running resources.
๐Methods
Method | Returns | Description |
---|---|---|
all( |
String |
Returns the list of all resources |
start( |
String |
Deploys a CRD provided. |
get( |
String |
Returns the CRD of the running resource, if exists. |
stop( |
String |
Stops and deletes a running resource by name |
logs( |
String |
Returns a stream of the log |
๐
<p> <p>
๐ClusterService
Service to interact with the cluster. This is the utility class the resource relies on to perform the
operations.Method | Returns | Description |
---|---|---|
getResources( |
Deployment[] |
Returns the list of resources in a given namespace |
start( |
|
Deploys the given input resource
Starts the given CustomResource. |
stop( |
|
Stops the resource with the given name. |
get( |
CustomResource |
Returns the given resource. |
streamlogs( |
String |
Streams the log of the given pod, starting with said number of lines. |
๐IntegrationsResource
This endpoint will return the yaml needed to deploy the related integration and the endpoints to interact with deployments. <p> This endpoint will return the yaml needed to deploy the related integration and the endpoints to interact with deployments.
๐Methods
Method | Returns | Description |
---|---|---|
crd( |
Map |
Idempotent operation that given given a JSON status, returns the CRD. |
integration( |
Map |
Idempotent operation that given a CRD, returns the JSON status.
Idempotent operation that given a CRD, returns the JSON representation. |
compatibleDSL( |
Map |
Idempotent operation that given list of steps, returns the list of compatible languages. |
CRDs( |
Map |
Idempotent operation that given an array of integrations, returns the corresponding CRDs. |
๐
Represents an Integration definition that can be deployed.
This generates a flow based on how Camel-K defines YAML routes as described in https://camel.apache.org/components/latest/others/yaml-dsl.html This implementation models the steps as "Loading Camel K Integrations".
๐Integration
Property | Type | Description |
---|---|---|
steps
| ||
metadata
| ||
parameters
| ||
dsl
|
๐
๐DeploymentService
Method | Returns | Description |
---|---|---|
integration( |
Map |
Based on the provided steps, returns a valid CRDs to deploy |
crd( |
String |
Based on the provided steps, return a valid yaml string to deploy |
crds( |
String |
Based on the provided steps, return a valid yaml string to deploy |
๐StepResource
<p> This endpoint will return steps based on the parameters.
๐Methods
Method | Returns | Description |
---|---|---|
allSteps( |
List[Step] |
Returns all the steps. If parameters are included in the query, it will filter only those steps compatible with the constraints. |
stepById( |
Step |
Returns the first step identified by the parameter. |
stepsByName( |
List[Step] |
Returns all the steps identified by the name. |
๐
๐StepService
Method | Returns | Description |
---|---|---|
stepById( |
Step |
Returns the first step identified by the parameter. |
stepsByName( |
List[Step] |
Returns all the steps identified by the name. |
allSteps() |
List[Step] |
Returns all the steps. |
๐
<p>
๐DeploymentGeneratorService
Method | Returns | Description |
---|---|---|
parse( |
String |
Based on the list of steps, returns the yaml to deploy it.
If applies, the name will be the name used on the integration deployed.
Based on the list of flows, returns the source code. If applies, the name will be the name used on the integration deployed. Based on the source code, returns the resource to deploy. |
getStatus() |
CustomResource |
Returns the status of the custom resource provided. It must be one of the supported types in #supportedCustomResources() . |
supportedCustomResources() |
List |
Returns the Java model classes that extend CustomResource and that are the types of custom resources supported in the cluster. |
getResources( |
Deployment[] |
Return the step kinds compatible with this service. |
getPod( |
Pod |
Return the pod associated to the resource by name. If no pod associated, returns null. |
filterCatalog( |
List[Step] |
Filters a list of steps. previousStep and followingStep gives context to the catalog, potentially restricting the response. |
๐ViewDefinitionResource
This endpoint will return a list of views based on the parameters.
๐Methods
Method | Returns | Description |
---|---|---|
viewsPerStepList:( |
|
Based on the list of steps provided, offer a list of possible view definitions and step extensions. |
๐
๐ViewDefinitionService
Method | Returns | Description |
---|---|---|
viewsPerStepList( |
List[ViewDefinition] |
Based on the provided list of steps, offer a list of compatible ViewDefinitions. |
๐Kamelet
Represents a Kamelet definition that can be deployed.
This generates a flow based on how Camel-K defines YAML routes as described in https://camel.apache.org/camel-k/1.6.x/languages/yaml.html This implementation models the steps as "Using URI and parameters".
๐KameletBinding
Represents a Kamelet binding that can be deployed <p> <p>
apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: twitter-search-source-binding
spec:
source:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: twitter-search-source
properties:
keywords: "Apache Camel"
apiKey: "your own"
apiKeySecret: "your own"
accessToken: "your own"
accessTokenSecret: "your own"
steps:
-
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: aws-translate-action
-
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: avro-deserialize-action
sink:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: kafka-sink
properties:
brokers: "The Brokers"
password: "The Password"
topic: "The Topic Names"
username: "The Username"
๐CamelRoute
๐KameletParseCatalog
Reads and parses a kamelet catalog. Extracts all the kamelet definitions it can find and generate a kamelet step for each one.
๐Methods
Methods inherited from StepCatalogParser
Method | Returns | Description |
---|---|---|
getParser( |
ParseCatalog |
Loads all the elements from memory(code).
Loads all the elements on the given url. Loads all the elements on the git repository. |
getParserFromCluster() |
ParseCatalog |
Loads all the elements on the connected cluster. |
getLocalFolder( |
ParseCatalog |
Loads all the elements on the given path. |
generatesKind( |
Boolean |
Does this parser generate steps of this kind? |
๐AbstractCatalog
Abstract implementation of an ApplicationScoped catalog. This will be the base of the beans that can be injected in the different services and resources.
๐Methods
Method | Returns | Description |
---|---|---|
waitForWarmUp() |
CompletableFuture |
Completable reference to when the loadParsers method finishes. |
loadParsers() |
List[ParseCatalog] |
Loads all the catalogs into the bean |
warmUpCatalog() |
|
Add all elements from the parsers into the catalog |
refresh() |
|
Function to be called periodically that refreshes the elements of the catalog, considering the catalog is dynamic. It prevents any synchronization error that would show an empty catalog during the refreshing. |
๐CatalogCollection
Joins a list of metadata catalogs. When those catalogs are updated, the content of this collection changes too. As each catalog have their own ID constraints, there may be more than one connector with the same ID on this collection of catalogs.
๐Methods
Methods inherited from MetadataCatalog
Method | Returns | Description |
---|---|---|
searchStepByID( |
Metadata |
Returns the element identified by the parameter. |
searchByName( |
List[Metadata] |
Returns all the elements found (no order warranteed) identified by the name. |
store( |
boolean |
Stores the elements passed as parameter on the catalog. Returns true if no error was found. |
getAll() |
List[Metadata] |
Returns all the elements in the catalog. Be careful using this as there's no limit on the amount of data stored on the catalog. |
clear() |
void |
Removes all metadata from catalog. |
๐InMemoryCatalog
Basic catalog implementation useful for testing and small instances.
๐Methods
Methods inherited from MetadataCatalog
Method | Returns | Description |
---|---|---|
searchStepByID( |
Metadata |
Returns the element identified by the parameter. |
searchByName( |
List[Metadata] |
Returns all the elements found (no order warranteed) identified by the name. |
store( |
boolean |
Stores the elements passed as parameter on the catalog. Returns true if no error was found. |
getAll() |
List[Metadata] |
Returns all the elements in the catalog. Be careful using this as there's no limit on the amount of data stored on the catalog. |
clear() |
void |
Removes all metadata from catalog. |
๐ReadOnlyCatalog
A Catalog Collection that acts as singleton to a catalog collection. It only contains one catalog, and if you add another one, it replaces it. This is useful to avoid empty catalogs when reloading data.
๐Methods
Methods inherited from MetadataCatalog
Method | Returns | Description |
---|---|---|
searchStepByID( |
Metadata |
Returns the element identified by the parameter. |
searchByName( |
List[Metadata] |
Returns all the elements found (no order warranteed) identified by the name. |
store( |
boolean |
Stores the elements passed as parameter on the catalog. Returns true if no error was found. |
getAll() |
List[Metadata] |
Returns all the elements in the catalog. Be careful using this as there's no limit on the amount of data stored on the catalog. |
clear() |
void |
Removes all metadata from catalog. |
๐MetadataCatalog
All metadata catalogs implements this interface. Helper to unify catalog handling implementation.
๐Methods
Method | Returns | Description |
---|---|---|
searchStepByID( |
Metadata |
Returns the element identified by the parameter. |
searchByName( |
List[Metadata] |
Returns all the elements found (no order warranteed) identified by the name. |
store( |
boolean |
Stores the elements passed as parameter on the catalog. Returns true if no error was found. |
getAll() |
List[Metadata] |
Returns all the elements in the catalog. Be careful using this as there's no limit on the amount of data stored on the catalog. |
clear() |
void |
Removes all metadata from catalog. |
๐
๐Metadata
Property | Type | Description |
---|---|---|
ID
| ||
name
| ||
type
|
๐ParseCatalog
Load and warm up catalog utility.
๐Methods
Method | Returns | Description |
---|---|---|
parse() |
CompletableFuture[List[T]] |
Load all the source data, parse it and return a completable list of elements to add to a catalog. |
setFileVisitor( |
|
๐GitParseCatalog
Abstract implementation that downloads a git repository and walks through all the files parsing them and preparing elements to add to a catalog.
๐Methods
Methods inherited from ParseCatalog
Method | Returns | Description |
---|---|---|
parse() |
CompletableFuture[List[T]] |
Load all the source data, parse it and return a completable list of elements to add to a catalog. |
setFileVisitor( |
|
๐JarParseCatalog
Abstract implementation that downloads a jar file and walks through all the files parsing them and preparing elements to add to a catalog.
๐Methods
Methods inherited from ParseCatalog
Method | Returns | Description |
---|---|---|
parse() |
CompletableFuture[List[T]] |
Load all the source data, parse it and return a completable list of elements to add to a catalog. |
setFileVisitor( |
|
๐LocalFolderParseCatalog
Abstract implementation that walks through all the files in a local folder parsing them and preparing elements to add to a catalog.
๐Methods
Methods inherited from ParseCatalog
Method | Returns | Description |
---|---|---|
parse() |
CompletableFuture[List[T]] |
Load all the source data, parse it and return a completable list of elements to add to a catalog. |
setFileVisitor( |
|
๐ClusterParseCatalog
Abstract implementation that extracts CustomResources from a cluster and parses them to add to a catalog.
๐Methods
Methods inherited from ParseCatalog
Method | Returns | Description |
---|---|---|
parse() |
CompletableFuture[List[T]] |
Load all the source data, parse it and return a completable list of elements to add to a catalog. |
setFileVisitor( |
|
๐YamlProcessFile
๐ViewDefinition
Represents a possible view the frontend can use to show data and metadata. It may have some constraints on when this view can be used.
๐Properties
Property | Type | Description |
---|---|---|
properties
| ||
step
| ||
url
| ||
constraints
|
Properties inherited from Metadata
Property | Type | Description |
---|---|---|
ID
| ||
name
| ||
type
|
๐
๐ViewDefinitionConstraint
Property | Type | Description |
---|---|---|
mandatory
| ||
operation
| ||
parameter
|
๐ViewDefinitionCatalog
This is a singleton that will contain all catalogs with viewdefinitions.
๐Methods
Methods inherited from AbstractCatalog
Method | Returns | Description |
---|---|---|
waitForWarmUp() |
CompletableFuture |
Completable reference to when the loadParsers method finishes. |
loadParsers() |
List[ParseCatalog] |
Loads all the catalogs into the bean |
warmUpCatalog() |
|
Add all elements from the parsers into the catalog |
refresh() |
|
Function to be called periodically that refreshes the elements of the catalog, considering the catalog is dynamic. It prevents any synchronization error that would show an empty catalog during the refreshing. |
๐ViewDefinitionParseCatalog
Reads and parses a view definition catalog. Extracts all the view definitions it can find and generate a ViewDefinition for each one.
๐ViewDefinitionParserService
Generic interface for all viewDefinition parsers.
๐Methods
Method | Returns | Description |
---|---|---|
parse( |
List[ViewDefinition] |
Based on the list of steps, offer a list of compatible ViewDefinitions. |
getViewsPerStep( |
List[ViewDefinition] |
If the ViewDefinition is a stepView, it returns all possible ViewDefinitions associated to steps. |
appliesTo( |
boolean |
Check if the viewDefinition applies to the steps or one of the given steps by also looking into subsequent branches |
appliesToStep( |
boolean |
Check if the viewDefinition applies to the exact given step but not a step in subsequent branches |
๐
๐Step
Represents a step inside an integration.
๐Properties
Property | Type | Description |
---|---|---|
description
| ||
title
| ||
parameters
| ||
icon
| ||
UUID
| ||
required
| ||
group
| ||
kind
| ||
branches
| ||
minBranches
| ||
maxBranches
| ||
id
|
Properties inherited from Metadata
Property | Type | Description |
---|---|---|
ID
| ||
name
| ||
type
|
๐
๐Branch
Property | Type | Description |
---|---|---|
steps
| ||
parameters
|
๐Parameter
<p> Represents a parameter of a step in an integration. These parameters could be used on the UI to configure the step.
๐Properties
Property | Type | Description |
---|---|---|
description
| ||
title
| ||
id
| ||
value
| ||
default
| ||
type
| ||
path
| ||
nullable
| ||
enum
| ||
examples
| ||
pathOrder
| ||
pathSeparator
|
๐
๐ArrayParameter
Property | Type | Description |
---|---|---|
maxItems
| ||
minItems
| ||
uniqueItems
|
๐
๐IntegerParameter
Property | Type | Description |
---|---|---|
maximum
| ||
minimum
|
๐
๐NumberParameter
Property | Type | Description |
---|---|---|
maximum
| ||
minimum
|
๐
๐ObjectParameter
Property | Type | Description |
---|---|---|
maxProperties
| ||
minProperties
| ||
required
|
๐
๐StringParameter
Property | Type | Description |
---|---|---|
maxLength
| ||
minLength
| ||
pattern
| ||
format
|
๐StepCatalog
This is a singleton that will contain all catalogs with steps.
๐Methods
Methods inherited from AbstractCatalog
Method | Returns | Description |
---|---|---|
waitForWarmUp() |
CompletableFuture |
Completable reference to when the loadParsers method finishes. |
loadParsers() |
List[ParseCatalog] |
Loads all the catalogs into the bean |
warmUpCatalog() |
|
Add all elements from the parsers into the catalog |
refresh() |
|
Function to be called periodically that refreshes the elements of the catalog, considering the catalog is dynamic. It prevents any synchronization error that would show an empty catalog during the refreshing. |
๐StepCatalogParser
Interface used to parse steps from a remote catalog.
๐Methods
Method | Returns | Description |
---|---|---|
getParser( |
ParseCatalog |
Loads all the elements from memory(code).
Loads all the elements on the given url. Loads all the elements on the git repository. |
getParserFromCluster() |
ParseCatalog |
Loads all the elements on the connected cluster. |
getLocalFolder( |
ParseCatalog |
Loads all the elements on the given path. |
generatesKind( |
Boolean |
Does this parser generate steps of this kind? |
๐StepParserService
Generic interface for all step parsers.
๐Methods
Method | Returns | Description |
---|---|---|
parse( |
ParseResult |
Based on the YAML provided, offer a list of steps defined on it and the metadata associated to the orchestration. |
getParsedFlows( |
List |
Based on the YAML provided, offer a list of flows defined on it and the metadata associated to the orchestration. |
appliesTo( |
boolean |
Check if this parser knows how to parse the provided source code |
๐
๐
๐
๐
๐
๐FlowsWrapper
Used by the API to pass flows back and forth.
๐CamelRestDSLParseCatalog
<p> <p> Adds the REST DSL steps to the catalog.
๐Methods
Methods inherited from StepCatalogParser
Method | Returns | Description |
---|---|---|
getParser( |
ParseCatalog |
Loads all the elements from memory(code).
Loads all the elements on the given url. Loads all the elements on the git repository. |
getParserFromCluster() |
ParseCatalog |
Loads all the elements on the connected cluster. |
getLocalFolder( |
ParseCatalog |
Loads all the elements on the given path. |
generatesKind( |
Boolean |
Does this parser generate steps of this kind? |
๐SimplifiedKamelet
Used to read kamelet properties, but not digging into the implementation of the kamelet.
๐EmptyParseCatalog
This returns an empty catalog.
๐Methods
Methods inherited from ParseCatalog
Method | Returns | Description |
---|---|---|
parse() |
CompletableFuture[List[T]] |
Load all the source data, parse it and return a completable list of elements to add to a catalog. |
setFileVisitor( |
|
๐ProcessFile
Helper class to walk around files to parse Metadata objects.
๐DSLSpecification
<p> <p>
๐Methods
Method | Returns | Description |
---|---|---|
identifier() |
String |
Returns the identifier of the supported language.
This must be unique on the whole Kaoto instance and relates the deployments and parsers services with the DSL specification. |
description() |
String |
Returns the identifier of the supported language.
This must be unique on the whole Kaoto instance and relates the deployments and parsers services with the DSL specification. |
isDeployable() |
boolean |
Based on the environment, the capabilities, or any other important feature.
But, is this DSL deployable using the Deploy button in Kaoto? |
getKinds() |
String[] |
Return the kinds of steps compatible with this DSL. |
appliesTo( |
boolean |
Check if this DSL can be applied to the list of steps.
Check if at least one of the flows belongs to this DSL. Check if the source code is from this DSL. |
getDeploymentGeneratorService() |
DeploymentGeneratorService |
Returns the Deployment Generator Service associated to this DSL, if exists. |
getStepParserService() |
StepParserService |
Returns the Step Parser Service associated to this DSL, if exists. |