Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File implements the http.File interface for a S3 object or simulated directory.
type Filesystem ¶
type Filesystem struct {
// contains filtered or unexported fields
}
Filesystem implements the http.FileSystem interface for an S3 bucket.
func New ¶
func New(endpoint, region, bucket string) *Filesystem
New builds and returns a new Filesystem accessing an S3. Credentials come from the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables.
func NewWithS3 ¶
func NewWithS3(bucket string, mock s3Interface) *Filesystem
NewWithS3 takes an s3Interface and is used for testing
Directories ¶
Path | Synopsis |
---|---|
mock
|
|
mock_s3interface
Package mock_s3httpfilesystem is a generated GoMock package.
|
Package mock_s3httpfilesystem is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.