Sign inSign up

vorteil/zip

By vorteil

Updated about 5 years ago

Image
0

1.3K

vorteil/zip repository overview

Zip

Create a zip file with the files provided.

Direktiv

An example workflow of using the container on Direktiv.

id: zip-file
description: Listens for a smtp-event to send the email appropriately.
functions:
- id: zip
  image: vorteil/zip:v1
states:
- id: zip-data
  type: action
  transform: 
    data: jq(.return)
    smtp: jq(.smtp)
    password: jq(.password)
  action:
    function: zip
    input:
      password: jq(.password)
      files: jq(.smtp.attachments)
Input
  • password: the string that will encrypt the zip file
  • files
    • name: the name of the file
    • data: the data for the file
    • type: base64 to decode or blank
Output

The output returns the entire file which comes back as base64 string.

Error

In the case that an error is encountered it will present in the following format:

{
    "errorCode": "com.zip.%s.error",
    "errorMsg": "Something went wrong"
}

Replacing '%s' contextually with where the error occurred.

Tag summary

Content type

Image

Digest

Size

2.3 MB

Last updated

about 5 years ago

docker pull vorteil/zip