Documentation ¶
Index ¶
- Variables
- func S3(bucket *url.URL, config *s3util.Config) rwvfs.FileSystem
- type S3FS
- func (fs *S3FS) Create(path string) (io.WriteCloser, error)
- func (fs *S3FS) Lstat(name string) (os.FileInfo, error)
- func (fs *S3FS) Mkdir(name string) error
- func (fs *S3FS) MkdirAll(name string) error
- func (fs *S3FS) Open(name string) (vfs.ReadSeekCloser, error)
- func (fs *S3FS) OpenFetcher(name string) (vfs.ReadSeekCloser, error)
- func (fs *S3FS) OpenRange(name string, rangeHeader string) (f vfs.ReadSeekCloser, err error)
- func (fs *S3FS) ReadDir(path string) ([]os.FileInfo, error)
- func (fs *S3FS) Remove(name string) (err error)
- func (fs *S3FS) Stat(name string) (os.FileInfo, error)
- func (fs *S3FS) String() string
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func S3 ¶
S3 returns an implementation of FileSystem using the specified S3 bucket and config. If config is nil, DefaultS3Config is used.
The bucket URL is the full URL to the bucket on Amazon S3, including the bucket name and AWS region (e.g., https://s3-us-west-2.amazonaws.com/mybucket).
Types ¶
type S3FS ¶
type S3FS struct {
// contains filtered or unexported fields
}
func (*S3FS) Create ¶
func (fs *S3FS) Create(path string) (io.WriteCloser, error)
Create opens the file at path for writing, creating the file if it doesn't exist and truncating it otherwise.
func (*S3FS) OpenFetcher ¶
func (fs *S3FS) OpenFetcher(name string) (vfs.ReadSeekCloser, error)
Click to show internal directories.
Click to hide internal directories.