Documentation ¶
Index ¶
- type S3File
- type S3Lib
- func (s *S3Lib) Delete(bucket, path string) (err error)
- func (s *S3Lib) Download(filename string, bucket, path string) (err error)
- func (s *S3Lib) DownloadWriter(w io.WriterAt, bucket, path string) (err error)
- func (s *S3Lib) IsExpired() bool
- func (s *S3Lib) List(bucket, path string) (files []S3File, err error)
- func (s *S3Lib) Retrieve() (credentials.Value, error)
- func (s *S3Lib) Upload(filename string, bucket, path string) (err error)
- func (s *S3Lib) UploadReader(r io.Reader, bucket, path string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Lib ¶
type S3Lib struct {
// contains filtered or unexported fields
}
func (*S3Lib) Delete ¶
Delete deletes an item from an s3 bucket if the object does not exists, returns no error
func (*S3Lib) Download ¶
Download downloads an item from an s3 bucket and write it to the given file
func (*S3Lib) DownloadWriter ¶
Download downloads an item from an s3 bucket and write it to the given writer
func (*S3Lib) List ¶
List lists items in an s3 bucket given by a prefix. An empty prefix will list all the items
Click to show internal directories.
Click to hide internal directories.