s3bee

package
v0.0.0-...-42619b2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2017 License: AGPL-3.0 Imports: 6 Imported by: 0

README

S3 Bee

Uploads files to S3 compatible storage:

  • AWS Signature Version 4

    • Amazon S3
    • Minio
  • AWS Signature Version 2

    • Google Cloud Storage (Compatibility Mode)
    • Openstack Swift + Swift3 middleware
    • Ceph Object Gateway
    • Riak CS

See https://github.com/minio/minio-go

Configuration

  • endpoint: S3 host (Path to monitor (file or directory).
  • access_key_id: S3 access key. Prefix the value with env:// to retrieve the key from the environment. Example: env://AWS_ACCESS_KEY_ID or ASDFWERSDF123WERF
  • secret_access_key: S3 secret access key. Prefix the value with env:// to retrieve the key from the environment. Example: env://AWS_SECRET_ACCESS_KEY or vASiudxSHReo4elkajsdklfu827389234sdfsdf
  • use_ssl: Defaults to true.
  • region: AWS region. Defaults to us-east-1.

Actions

upload

  • bucket: target bucket to upload the file.
  • path: Source file path.
  • object_path: Destination file path. Defaults to the source file name.

Credits

AWS logo: https://hu.wikipedia.org/wiki/Amazon_S3#/media/File:AWS_Simple_Icons_AWS_Cloud.svg

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Bee

type S3Bee struct {
	bees.Bee
	// contains filtered or unexported fields
}

func (*S3Bee) Action

func (bee *S3Bee) Action(action bees.Action) []bees.Placeholder

Action triggers the action passed to it.

func (*S3Bee) ReloadOptions

func (bee *S3Bee) ReloadOptions(options bees.BeeOptions)

type S3BeeFactory

type S3BeeFactory struct {
	bees.BeeFactory
}

S3BeeFactory is a factory for S3Bees.

func (*S3BeeFactory) Actions

func (factory *S3BeeFactory) Actions() []bees.ActionDescriptor

func (*S3BeeFactory) Description

func (factory *S3BeeFactory) Description() string

Description returns the description of this Bee.

func (*S3BeeFactory) ID

func (factory *S3BeeFactory) ID() string

ID returns the ID of this Bee.

func (*S3BeeFactory) Image

func (factory *S3BeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*S3BeeFactory) LogoColor

func (factory *S3BeeFactory) LogoColor() string

LogoColor returns the preferred logo background color (used by the admin interface).

func (*S3BeeFactory) Name

func (factory *S3BeeFactory) Name() string

Name returns the name of this Bee.

func (*S3BeeFactory) New

func (factory *S3BeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface

New returns a new Bee instance configured with the supplied options.

func (*S3BeeFactory) Options

func (factory *S3BeeFactory) Options() []bees.BeeOptionDescriptor

Options returns the options available to configure this Bee.

Jump to

Keyboard shortcuts

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