Create a zip file with the files provided.
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)
The output returns the entire file which comes back as base64 string.
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.
Content type
Image
Digest
Size
2.3 MB
Last updated
about 5 years ago
docker pull vorteil/zip