Documentation ¶
Index ¶
- Variables
- type File
- type Filesystem
- func (fs *Filesystem) Create(name string) (ros.File, error)
- func (fs *Filesystem) Mkdir(name string, perm ros.FileMode) error
- func (fs *Filesystem) MkdirAll(path string, perm ros.FileMode) error
- func (fs *Filesystem) Open(name string) (ros.File, error)
- func (fs *Filesystem) ReadDir(name string) ([]ros.DirEntry, error)
- func (fs *Filesystem) ReadFile(name string) ([]byte, error)
- func (fs *Filesystem) Remove(name string) error
- func (fs *Filesystem) Rename(oldpath, newpath string) error
- func (fs *Filesystem) Stat(name string) (ros.FileInfo, error)
- func (fs *Filesystem) Symlink(oldname, newname string) error
- func (fs *Filesystem) WriteFile(name string, data []byte, perm ros.FileMode) error
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingClient = errors.New("missing s3 client") ErrMissingBucketName = errors.New("missing bucket name") )
Functions ¶
This section is empty.
Types ¶
type Filesystem ¶
type Filesystem struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, opts ...Option) (*Filesystem, error)
New creates a new S3 filesystem with the given options.
func (*Filesystem) Remove ¶
func (fs *Filesystem) Remove(name string) error
func (*Filesystem) Rename ¶
func (fs *Filesystem) Rename(oldpath, newpath string) error
func (*Filesystem) Symlink ¶
func (fs *Filesystem) Symlink(oldname, newname string) error
type Option ¶
type Option func(*Filesystem)
Option is a configuration function for an S3 Filesystem.
func WithBucket ¶
WithBucket sets the S3 bucket name for the filesystem.
func WithClient ¶
WithClient sets the S3 client for the filesystem.
Click to show internal directories.
Click to hide internal directories.