s3

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package s3 provides a client to make API requests to Amazon Simple Storage Service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3 added in v0.0.8

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

S3 wraps an Amazon Simple Storage Service client.

func New

func New(s *session.Session) *S3

New returns an S3 client configured against the input session.

func (*S3) EmptyBucket added in v0.0.8

func (s *S3) EmptyBucket(bucket string) error

EmptyBucket deletes all objects within the bucket.

func (*S3) PutArtifact added in v0.0.8

func (s *S3) PutArtifact(bucket, fileName string, data io.Reader) (string, error)

PutArtifact uploads data to a S3 bucket under a random path that ends with the file name and returns its url.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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