s3

package module
v0.0.0-...-2b56179 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: BSD-3-Clause Imports: 14 Imported by: 0

README

Amazon S3

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

Installation

flogo install github.com/project-flogo/aws-contrib/activity/s3

Link for flogo web:

https://github.comproject-flogo/aws-contrib/activity/s3

Configuration

To configure AWS credentials see configuring-sdk

Settings

Setting Description
awsRegion The AWS region your S3 bucket is in

Inputs

Input Description
action The action you want to take, either download, upload, delete, or copy
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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Activity

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

func (*Activity) Eval

func (a *Activity) Eval(ctx activity.Context) (done bool, err error)

func (*Activity) Metadata

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

type Input

type Input struct {
	Action        string `md:"action"`
	S3BucketName  string `md:"s3BucketName"`
	S3Location    string `md:"s3Location"`
	LocalLocation string `md:"localLocation"`
	S3NewLocation string `md:"s3NewLocation"`
}

func (*Input) FromMap

func (i *Input) FromMap(values map[string]interface{}) error

func (*Input) ToMap

func (i *Input) ToMap() map[string]interface{}

type Output

type Output struct {
	Result string `md:"result"` // The message id
}

func (*Output) FromMap

func (o *Output) FromMap(values map[string]interface{}) error

func (*Output) ToMap

func (o *Output) ToMap() map[string]interface{}

type Settings

type Settings struct {
	AWSRegion string `md:"awsRegion"`
	Action    string `md:"action"`
}

Jump to

Keyboard shortcuts

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