aws

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NilS3URL = S3URL{nil}

Functions

This section is empty.

Types

type AWSService

type AWSService interface {
	GetCSV(s3url S3URL) (io.Reader, error)
	SaveFile(reader io.Reader, s3url S3URL) error
}

AWSClient interface defining the AWS client.

func NewService

func NewService() AWSService

NewClient create new AWSClient.

type S3URL

type S3URL struct {
	URL *url.URL
}

func NewS3URL

func NewS3URL(s string) (S3URL, error)

func (*S3URL) GetBucketName

func (s *S3URL) GetBucketName() string

func (*S3URL) GetFilePath

func (s *S3URL) GetFilePath() string

func (S3URL) MarshalJSON

func (s S3URL) MarshalJSON() ([]byte, error)

func (*S3URL) String

func (s *S3URL) String() string

func (*S3URL) UnmarshalJSON

func (s *S3URL) UnmarshalJSON(b []byte) (err error)

type Service

type Service struct{}

Client AWS client implementation.

func (*Service) GetCSV

func (cli *Service) GetCSV(s3url S3URL) (io.Reader, error)

GetFile get the requested file from AWS.

func (*Service) SaveFile

func (cli *Service) SaveFile(reader io.Reader, s3url S3URL) error

Jump to

Keyboard shortcuts

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