gzip

package module
v0.0.0-...-dceaa68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 8 Imported by: 0

README

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

Documentation

Overview

Package gzip implements activities for reading and writing of gzip format compressed files, as specified in RFC 1952.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity creates a new activity

Types

type MyActivity

type MyActivity struct {
	// contains filtered or unexported fields
}

MyActivity is a stub for your Activity implementation

func (*MyActivity) Eval

func (a *MyActivity) Eval(context activity.Context) (done bool, err error)

Eval implements activity.Activity.Eval

func (*MyActivity) Metadata

func (a *MyActivity) Metadata() *activity.Metadata

Metadata implements activity.Activity.Metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL