amazons3

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: 10 Imported by: 0

README

Amazon S3

Upload or Download files from Amazon Simple Storage Service (S3)

Installation

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

Link for flogo web:

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

Schema

Inputs and Outputs:

{
    "inputs": [
        {
            "name": "action",
            "type": "string",
            "allowed": [
                "download",
                "upload",
                "delete",
                "copy"
            ],
            "required": true
        },
        {
            "name": "awsAccessKeyID",
            "type": "string",
            "required": true
        },
        {
            "name": "awsSecretAccessKey",
            "type": "string",
            "required": true
        },
        {
            "name": "awsRegion",
            "type": "string",
            "required": true
        },
        {
            "name": "s3BucketName",
            "type": "string",
            "required": true
        },
        {
            "name": "s3Location",
            "type": "string",
            "required": true
        },
        {
            "name": "localLocation",
            "type": "string"
        },
        {
            "name": "s3NewLocation",
            "type": "string"
        }
    ],
    "outputs": [
        {
            "name": "result",
            "type": "string"
        }
    ]
}

Inputs

Input Description
action The action you want to take, either download, upload, delete, or copy
awsAccessKeyID Your AWS Access Key (only needed if you don't give your Lambda function rights to invoke S3 reads and puts)
awsSecretAccessKey Your AWS Secret Key (only needed if you don't give your Lambda function rights to invoke S3 reads and puts)
awsRegion The AWS region your S3 bucket is in
s3BucketName The name of your S3 bucket
s3Location The file location on S3, this should be a full path (like /bla/temp.txt)
localLocation The localLocation is the full path to a file (like /bla/temp.txt) when uploading a file or the full path to a directory (like ./tmp) when downloading a file
s3NewLocation The new file location on S3 of you want to copy a file, this should be a full path (like /bla/temp.txt)

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 amazons3 uploads or downloads files from Amazon Simple Storage Service (S3)

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