Documentation ¶
Overview ¶
S3 interface
Index ¶
- func NewFs(name, root string) (fs.Fs, error)
- type FsObjectS3
- func (o *FsObjectS3) Fs() fs.Fs
- func (o *FsObjectS3) Md5sum() (string, error)
- func (o *FsObjectS3) ModTime() time.Time
- func (o *FsObjectS3) Open() (in io.ReadCloser, err error)
- func (o *FsObjectS3) Remote() string
- func (o *FsObjectS3) Remove() error
- func (o *FsObjectS3) SetModTime(modTime time.Time)
- func (o *FsObjectS3) Size() int64
- func (o *FsObjectS3) Storable() bool
- func (o *FsObjectS3) String() string
- func (o *FsObjectS3) Update(in io.Reader, modTime time.Time, size int64) error
- type FsS3
- func (f *FsS3) Copy(src fs.Object, remote string) (fs.Object, error)
- func (f *FsS3) List() fs.ObjectsChan
- func (f *FsS3) ListDir() fs.DirChan
- func (f *FsS3) Mkdir() error
- func (f *FsS3) Name() string
- func (f *FsS3) NewFsObject(remote string) fs.Object
- func (f *FsS3) Precision() time.Duration
- func (f *FsS3) Put(in io.Reader, remote string, modTime time.Time, size int64) (fs.Object, error)
- func (f *FsS3) Rmdir() error
- func (f *FsS3) Root() string
- func (f *FsS3) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FsObjectS3 ¶
type FsObjectS3 struct {
// contains filtered or unexported fields
}
FsObjectS3 describes a s3 object
func (*FsObjectS3) Md5sum ¶
func (o *FsObjectS3) Md5sum() (string, error)
Md5sum returns the Md5sum of an object returning a lowercase hex string
func (*FsObjectS3) ModTime ¶
func (o *FsObjectS3) ModTime() time.Time
ModTime returns the modification time of the object
It attempts to read the objects mtime and if that isn't present the LastModified returned in the http headers
func (*FsObjectS3) Open ¶
func (o *FsObjectS3) Open() (in io.ReadCloser, err error)
Open an object for read
func (*FsObjectS3) SetModTime ¶
func (o *FsObjectS3) SetModTime(modTime time.Time)
Sets the modification time of the local fs object
func (*FsObjectS3) Size ¶
func (o *FsObjectS3) Size() int64
Size returns the size of an object in bytes
type FsS3 ¶
type FsS3 struct {
// contains filtered or unexported fields
}
FsS3 represents a remote s3 server
func (*FsS3) Copy ¶
Copy src to this remote using server side copy operations.
This is stored with the remote path given ¶
It returns the destination Object and a possible error ¶
Will only be called if src.Fs().Name() == f.Name()
If it isn't possible then return fs.ErrorCantCopy
func (*FsS3) List ¶
func (f *FsS3) List() fs.ObjectsChan
Walk the path returning a channel of FsObjects
Click to show internal directories.
Click to hide internal directories.