You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/03/19 10:30:02 UTC

[camel-kamelets] 01/02: Added SSH Source Kamelet

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch SSH
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit b9bed6599f71a135571078165938b0cd61505c85
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 19 11:28:52 2021 +0100

    Added SSH Source Kamelet
---
 ssh-source.kamelet.yaml | 64 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

diff --git a/ssh-source.kamelet.yaml b/ssh-source.kamelet.yaml
new file mode 100644
index 0000000..b0533b0
--- /dev/null
+++ b/ssh-source.kamelet.yaml
@@ -0,0 +1,64 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: ssh-source
+  annotations:
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNjQgNjQiPgogICAgPHBhdGggZD0iTSA3IDggQyA1LjM0NiA4IDQgOS4zNDYgNCAxMSBMIDQgNTMgQyA0IDU0LjY1NCA1LjM0NiA1NiA3IDU2IEwgNTcgNTYgQyA1OC42NTQgNTYgNjAgNTQuNjU0IDYwIDUzIEwgNjAgMTEgQyA2MCA5LjM0NiA1OC42NTQgOCA1NyA4IEwgNyA4IHogTSA3IDEwIEwgNTcgMTAgQyA1Ny41NTIgMTAgNTggMTAuNDQ4IDU4IDExIEwgNTggNTMgQyA1OCA1My41NTIgNTcuNTUyIDU0IDU3IDU0IEwgNyA1NCBDID [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+  labels:
+    camel.apache.org/kamelet.type: "source"
+spec:
+  definition:
+    title: "SSH Source"
+    description: |-
+      Receive data from SSH session.
+    required:
+      - host
+      - port
+      - username
+      - password
+      - pollCommand
+    properties:
+      host:
+        title: SSH Host
+        description: The SSH Host
+        type: string
+      port:
+        title: SSH Port
+        description: The SSH Port
+        type: string
+        default: 22
+      username:
+        title: The SSH username
+        description: The SSH username to use
+        type: string
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+      password:
+        title: The SSH password
+        description: The SSH password to use
+        type: string
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+      delay:
+        title: Delay
+        description: Milliseconds before the next poll
+        type: integer
+        default: 500
+      pollCommand:
+        title: The Poll command
+        description: The command to run while polling the SSH session
+        type: string
+        example: date
+  flow:
+    from:
+      uri: "ssh://{{host}}:{{port}}"
+      parameters:
+        username: "{{username}}"
+        password: "{{password}}"
+        delay: "{{delay}}"
+        pollCommand: "{{pollCommand}}"
+      steps:
+      - convert-body-to:
+          type: "java.lang.String"
+      - to: "kamelet:sink"