Documentation ¶ Index ¶ type S3 func New() (*S3, error) func (s *S3) Delete(key string) error func (s *S3) Get(key string) (io.ReadCloser, error) func (s *S3) List(prefix string) ([]string, error) func (s *S3) Put(key string, rs io.ReadSeeker) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type S3 ¶ type S3 struct { // contains filtered or unexported fields } S3 represents AWS S3 service. func New ¶ func New() (*S3, error) AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY must be set to access AWS services AWS_S3_BUCKET must be set to specify the s3 bucket AWS_REGION can be set to specify the aws region func (*S3) Delete ¶ func (s *S3) Delete(key string) error func (*S3) Get ¶ func (s *S3) Get(key string) (io.ReadCloser, error) func (*S3) List ¶ func (s *S3) List(prefix string) ([]string, error) func (*S3) Put ¶ func (s *S3) Put(key string, rs io.ReadSeeker) error Source Files ¶ View all Source files s3.go Click to show internal directories. Click to hide internal directories.