Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
activity.go
activity.json
activity_test.go

README.md

GNU Zip

Read and write gzip format compressed files

Installation

flogo install github.com/retgits/flogo-components/activity/gzip

Link for flogo web:

https://github.com/retgits/flogo-components/activity/gzip

Schema

Inputs and Outputs:

{
    "inputs": [
        {
            "name": "action",
            "type": "string",
            "allowed": [
                "gzip",
                "gunzip"
            ]
        },
        {
            "name": "removeFile",
            "type": "boolean"
        },
        {
            "name": "sourceFile",
            "type": "string"
        },
        {
            "name": "targetDirectory",
            "type": "string"
        }
    ],
    "outputs": [
        {
            "name": "result",
            "type": "string"
        }
    ]
}

Inputs

Input Description
action The action you want to take, either gzip or gunzip
removeFile Remove the sourceFile after the action is completed
sourceFile For gzip the sourceFile is the full path of the file you want to compress (like /tmp/document.txt) and for gunzip it is the full path of the file you want to decompress (like /tmp/document.txt.gz)
targetDirectory The directory where you want to store compressed or decompressed file (like /tmp). This directory must exist!

Ouputs

Output Description
result The result will contain OK if the action was carried out successfully or will contain an error message