This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit faa4b7be070ad0b866a9f6334ba54aeaf383d8b5 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Mon Mar 8 12:12:52 2021 +0100 Added FTPS Source Kamelet --- .../ROOT/assets/images/kamelets/ftps-source.svg | 89 ++++++++++++++++++++++ docs/modules/ROOT/nav.adoc | 1 + docs/modules/ROOT/pages/ftps-source.adoc | 69 +++++++++++++++++ 3 files changed, 159 insertions(+) diff --git a/docs/modules/ROOT/assets/images/kamelets/ftps-source.svg b/docs/modules/ROOT/assets/images/kamelets/ftps-source.svg new file mode 100644 index 0000000..2faddf2 --- /dev/null +++ b/docs/modules/ROOT/assets/images/kamelets/ftps-source.svg @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 221.1 300" style="enable-background:new 0 0 221.1 300;" xml:space="preserve"> +<style type="text/css"> + .st0{fill:#832EAB;} + .st1{fill:#BABABA;} + .st2{fill:none;} + .st3{fill:#8DC63F;} + .st4{fill:#0F9BD7;} + .st5{fill:#FFFFFF;} + .st6{fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;} + .st7{fill:#1DA1F2;} + .st8{fill:#3D5A98;} + .st9{fill:#231F20;} + .st10{fill:#007BB5;} + .st11{fill:#DC4E41;} + .st12{fill-rule:evenodd;clip-rule:evenodd;fill:#181616;} + .st13{fill:#181616;} + .st14{fill:#F2F2F2;} + .st15{fill:#E3E3E3;} + .st16{fill:#D54B3D;} + .st17{fill:#D72B27;} + .st18{opacity:0.56;fill:url(#SVGID_1_);} + .st19{fill:#92D400;} + .st20{fill:#00B9E4;} + .st21{font-family:'OpenSans-Bold';} + .st22{font-size:45.4115px;} + .st23{fill:#2B3990;} + .st24{fill:#3F9C35;} + .st25{fill:#8FCED8;} + .st26{fill:#D21F21;} + .st27{fill:#D6D6D6;} + .st28{fill:#F1F1F1;} + .st29{fill:#C32265;} + .st30{fill:#8C3123;} + .st31{fill:#E05243;} + .st32{fill:#5E1F18;} + .st33{fill:#F2B0A9;} + .st34{fill:#CACCCE;} + .st35{fill:#A1AFDB;} + .st36{fill:#002087;} +</style> +<g> + <g> + <circle class="st20" cx="111.6" cy="191.7" r="88.6"/> + <g> + <path class="st5" d="M110.6,99.9c-50.8,0-92.2,41.4-92.2,92.2c0,50.9,41.4,92.2,92.2,92.2h0c50.8,0,92.2-41.4,92.2-92.2 + C202.8,141.3,161.4,99.9,110.6,99.9z M183.2,143.9c-7,6.8-13.3,14.4-18.6,22.7c-0.5-0.1-0.9-0.2-1.4-0.2c-1,0-1.9,0.3-2.8,0.7 + c-4.6-6.5-8.4-13.1-11.3-19.6c1.7-1.1,2.8-3,2.8-5.2c0-0.6-0.1-1.1-0.3-1.7c6.3-4.4,11.7-9.3,16-14.3 + C173.6,131.4,178.8,137.3,183.2,143.9z M68.8,169.1c4.8-0.5,9.6-1.2,14.5-2c1,2,3.1,3.4,5.5,3.4h0c0.8,0,1.7-0.2,2.4-0.5 + c6.2,8.9,13.5,17.1,21.8,24.4c8.7,7.6,18.2,14,28.1,19.1c-0.1,0.5-0.2,1-0.2,1.5c0,2.4,1.4,4.5,3.4,5.5 + c-1.1,7.2-1.6,14.5-1.5,21.6c-1.2,0.3-2.3,0.8-3.2,1.6c-9.3-6.6-19.4-12.2-30.1-16.5c-12.9-5.2-26.2-8.4-39.5-9.7 + c-0.8-3.5-3.9-6.1-7.6-6.2c-1-6.3-1.5-12.7-1.5-19.2c0-5.4,0.4-10.7,1.1-15.9C65.5,175.7,68.3,172.8,68.8,169.1z M64.7,161.2 + c2.3-8.7,5.5-17,9.7-24.7c2.6,7.9,6,15.7,10.2,23.1c-1.1,1-1.8,2.3-2,3.8c-4.8,0.8-9.5,1.5-14.3,1.9 + C67.7,163.6,66.4,162.1,64.7,161.2z M146.5,208.9c-1.8,0.2-3.4,1.1-4.4,2.4c-9.7-5-19-11.2-27.6-18.7c-8.2-7.2-15.3-15.3-21.4-24 + c1-1,1.6-2.4,1.7-3.9c17.4-4.1,33.4-10.3,46.7-17.8c1.1,1,2.5,1.6,4.1,1.6h0c0.4,0,0.8,0,1.2-0.1c2.9,6.8,6.8,13.6,11.6,20.3 + c-0.9,1.1-1.5,2.5-1.5,4c0,1.6,0.6,3.1,1.7,4.2c-3.7,7-6.9,14.4-9.3,22.2C148.2,202.3,147.3,205.6,146.5,208.9z M144.4,111.7 + c7.4,3.1,14.2,7.2,20.4,12.1c-4.1,4.7-9.2,9.3-15.3,13.5c-1.1-0.8-2.4-1.4-3.8-1.4c-0.2,0-0.3,0-0.5,0.1 + C142.9,127.3,142.5,118.9,144.4,111.7z M110.6,104.9c11.1,0,21.7,2.1,31.5,5.9c-2.1,7.7-1.7,16.6,0.7,25.9c-2,1-3.4,3.1-3.4,5.5 + c0,0.5,0.1,0.9,0.2,1.4c-13,7.4-28.7,13.5-45.6,17.5c-1.1-1.8-3.1-3.1-5.3-3.1c-0.7,0-1.4,0.1-2,0.4c-4.5-7.9-8.1-16.3-10.7-24.8 + c6.4-11,14.6-20.5,24.4-28.1C103.8,105.1,107.1,104.9,110.6,104.9z M93.2,106.6c-7.1,6.3-13.4,13.7-18.5,22 + c-1.2-4.9-2.1-9.8-2.7-14.7C78.6,110.6,85.8,108.1,93.2,106.6z M69.6,115.1c0.7,5.5,1.8,11,3.3,16.5c-5.1,8.8-9.1,18.4-11.8,28.5 + c-0.1,0-0.3,0-0.4,0c-3.8,0-6.9,2.6-7.8,6.2c-8.8,0.1-17.2-0.5-25.1-1.8C35,143.2,50.1,125.5,69.6,115.1z M23.3,192.1 + c0-8.3,1.2-16.4,3.4-24c7.6,1.3,15.7,2,24.1,2c0.7,0,1.3,0,2-0.1c0.6,2.7,2.6,4.9,5.2,5.8c-0.7,5.3-1.1,10.8-1.1,16.3 + c0,6.8,0.5,13.5,1.6,20c-2,0.9-3.6,2.7-4.3,4.8c-8.9,0.1-17.7,1.1-26.4,3C25,211.2,23.3,201.8,23.3,192.1z M29.2,223.4 + c8.2-1.7,16.5-2.6,24.9-2.8c0.6,3.9,3.9,6.8,8,6.8h0c0,0,0.1,0,0.1,0c5.8,19.8,16.6,37.2,31.1,50.1 + C63.8,271.6,39.8,250.9,29.2,223.4z M110.6,279.3L110.6,279.3c-3.4,0-6.8-0.2-10.2-0.6C84,266,72,247.7,65.7,226.6 + c2-1.1,3.6-2.9,4.1-5.2c12.9,1.3,25.7,4.4,38.2,9.4c10.4,4.2,20.2,9.6,29.2,16c-0.5,1-0.7,2.1-0.7,3.3c0,4.2,3.3,7.7,7.5,8 + c0.6,4.5,1.5,9,2.7,13.4C135.6,276.5,123.4,279.3,110.6,279.3z M150,269.9c-1-4.1-1.8-8.2-2.4-12.3c0.6-0.3,1.2-0.6,1.8-1 + c3.1,2.8,6,5.7,8.7,8.7C155.5,266.9,152.8,268.4,150,269.9z M161.3,263c-3-3.3-6.1-6.4-9.5-9.4c0.5-1.1,0.9-2.3,0.9-3.6 + c0-3.8-2.7-7-6.2-7.8c-0.1-7,0.4-14,1.5-21c1.8-0.2,3.3-1.2,4.3-2.6c12.4,4.9,25.3,7.8,38.3,8.5C184.1,241.5,174,253.9,161.3,263 + z M191.5,224.6c-13-0.6-25.9-3.4-38.3-8.3c0.1-0.4,0.1-0.8,0.1-1.2c0-2.3-1.3-4.3-3.1-5.4c0.8-3.2,1.6-6.4,2.6-9.5 + c2.4-7.5,5.4-14.6,9-21.4c0.4,0.1,0.9,0.1,1.3,0.2h0c1,0,2-0.3,2.9-0.7c2.1,2.4,4.3,4.8,6.6,7.1c7.6,7.4,15.8,13.6,24.3,18.6 + C196,211,194.2,218,191.5,224.6z M174.4,183.4c-2.3-2.2-4.4-4.5-6.5-6.8c0.9-1.1,1.4-2.4,1.4-3.9c0-1.6-0.6-3-1.6-4.1 + c5.1-7.8,10.9-15,17.5-21.4c8,13.1,12.5,28.6,12.5,45c0,3-0.2,6-0.5,8.9C189.3,196.2,181.6,190.4,174.4,183.4z"/> + </g> + </g> + <g> + <g> + <path d="M168.1,1.3c-0.8-0.9-2-1.3-3.1-1.3H4.4C2,0,0,2,0,4.4v291.3c0,2.4,2,4.4,4.4,4.4h212.4c2.4,0,4.4-2,4.4-4.4V57.8 + c0-1.1-0.4-2.2-1.2-3L168.1,1.3z M169.3,15.2l39.5,40.7h-39.5V15.2z M8.7,8.7h151.8v49.6c0,0.3,0.1,0.6,0.2,0.9 + c-0.1,0.3-0.2,0.6-0.2,0.9c0,2.4,2,4.4,4.4,4.4h47.5v226.7H8.7V8.7z"/> + </g> + </g> + <rect x="0" y="48.4" class="st2" width="221.7" height="76"/> + <text transform="matrix(1 0 0 1 77.8252 82.9128)" class="st9 st21 st22">ftp</text> +</g> +</svg> diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc index 7847c80..6aec635 100644 --- a/docs/modules/ROOT/nav.adoc +++ b/docs/modules/ROOT/nav.adoc @@ -4,6 +4,7 @@ * xref:ROOT:aws-sqs-source.adoc[image:kamelets/aws-sqs-source.svg[] AWS SQS Source] * xref:ROOT:bitcoin-source.adoc[image:kamelets/bitcoin-source.svg[] Bitcoin Source] * xref:ROOT:ftp-source.adoc[image:kamelets/ftp-source.svg[] FTP Source] +* xref:ROOT:ftps-source.adoc[image:kamelets/ftps-source.svg[] FTPS Source] * xref:ROOT:http-source.adoc[image:kamelets/http-source.svg[] HTTP Source] * xref:ROOT:jira-source.adoc[image:kamelets/jira-source.svg[] Jira Source] * xref:ROOT:kafka-source.adoc[image:kamelets/kafka-source.svg[] Kafka Source] diff --git a/docs/modules/ROOT/pages/ftps-source.adoc b/docs/modules/ROOT/pages/ftps-source.adoc new file mode 100644 index 0000000..9e05d2a --- /dev/null +++ b/docs/modules/ROOT/pages/ftps-source.adoc @@ -0,0 +1,69 @@ +// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT += image:kamelets/ftps-source.svg[] FTPS Source + +*Provided by: "Apache Software Foundation"* + +Receive data from an FTPS Server. + +== Configuration Options + +The following table summarizes the configuration options available for the `ftps-source` Kamelet: +[width="100%",cols="2,^2,3,^2,^2,^3",options="header"] +|=== +| Property| Name| Description| Type| Default| Example +| *directoryName {empty}* *| Directory Name| The starting directory| string| | +| *host {empty}* *| Host| Hostname of the FTPS server| string| | +| *password {empty}* *| Password| The password to access the FTPS server| string| | +| *port {empty}* *| Port| Port of the FTPS server| string| `21`| +| *username {empty}* *| Username| The username to access the FTPS server| string| | +| passiveMode| Passive Mode| Sets passive mode connection| boolean| `false`| +| recursive| Recursive| If a directory, will look for files in all the sub-directories as well.| boolean| `false`| +|=== + +NOTE: Fields marked with ({empty}*) are mandatory. + +== Usage + +This section summarizes how the `ftps-source` can be used in various contexts. + +=== Knative Source + +The `ftps-source` Kamelet can be used as Knative source by binding it to a Knative object. + +.ftps-source-binding.yaml +[source,yaml] +---- +apiVersion: camel.apache.org/v1alpha1 +kind: KameletBinding +metadata: + name: ftps-source-binding +spec: + source: + ref: + kind: Kamelet + apiVersion: camel.apache.org/v1alpha1 + name: ftps-source + properties: + directoryName: "The Directory Name" + host: "The Host" + password: "The Password" + username: "The Username" + sink: + ref: + kind: InMemoryChannel + apiVersion: messaging.knative.dev/v1 + name: mychannel + +---- + +Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to. + +Save the `ftps-source-binding.yaml` file into your hard drive, then configure it according to your needs. + +You can run the source using the following command: + +[source,shell] +---- +kubectl apply -f ftps-source-binding.yaml +---- +// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT