package
0.0.0-20200821104852-f76c6d292a95
Repository: https://github.com/jvanderl/flogo-components.git
Documentation: pkg.go.dev
# README
encoder
This activity provides your flogo application the ability to encode en decode strings using Base64, Base32.
Installation
flogo install github.com/jvanderl/flogo-components/activity/encoder
Link for flogo web:
https://github.com/jvanderl/flogo-components/activity/encoder
Schema
Inputs and Outputs:
{
"input":[
{
"name": "encoder",
"type": "string",
"required": true,
"allowed" : ["BASE32", "BASE64", "HEX"]
},
{
"name": "action",
"type": "string",
"required": true,
"allowed" : ["ENCODE", "DECODE"]
},
{
"name": "input",
"type": "string",
"required": true
}
],
"output": [
{
"name": "result",
"type": "string"
},
{
"name": "status",
"type": "string"
}
]
}
Inputs
Input | Description |
---|---|
encoder | The Encoder type. Select BASE32, BASE64, HEX |
action | Action to perform. Select ENCODE or DECODE |
input | The string to be encoded/decoded |
Outputs
Output | Description |
---|---|
result | The encoded or decoded string |
status | "OK" when all went fine, otherwise holds the error encountered. |
# Functions
NewActivity creates a new encoderActivity.