Documentation ¶
Overview ¶
Amazon Cloud Drive interface
Index ¶
- func NewFs(name, root string) (fs.Fs, error)
- type FsAcd
- func (f *FsAcd) CreateDir(pathId, leaf string) (newId string, err error)
- func (f *FsAcd) FindLeaf(pathId, leaf string) (pathIdOut string, found bool, err error)
- func (f *FsAcd) List() fs.ObjectsChan
- func (f *FsAcd) ListDir() fs.DirChan
- func (f *FsAcd) Mkdir() error
- func (f *FsAcd) Name() string
- func (f *FsAcd) NewFsObject(remote string) fs.Object
- func (f *FsAcd) Precision() time.Duration
- func (f *FsAcd) Purge() error
- func (f *FsAcd) Put(in io.Reader, remote string, modTime time.Time, size int64) (fs.Object, error)
- func (f *FsAcd) Rmdir() error
- func (f *FsAcd) Root() string
- func (f *FsAcd) String() string
- type FsObjectAcd
- func (o *FsObjectAcd) Fs() fs.Fs
- func (o *FsObjectAcd) Md5sum() (string, error)
- func (o *FsObjectAcd) ModTime() time.Time
- func (o *FsObjectAcd) Open() (in io.ReadCloser, err error)
- func (o *FsObjectAcd) Remote() string
- func (o *FsObjectAcd) Remove() error
- func (o *FsObjectAcd) SetModTime(modTime time.Time)
- func (o *FsObjectAcd) Size() int64
- func (o *FsObjectAcd) Storable() bool
- func (o *FsObjectAcd) String() string
- func (o *FsObjectAcd) Update(in io.Reader, modTime time.Time, size int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FsAcd ¶
type FsAcd struct {
// contains filtered or unexported fields
}
FsAcd represents a remote acd server
func (*FsAcd) List ¶
func (f *FsAcd) List() fs.ObjectsChan
Walk the path returning a channel of FsObjects
func (*FsAcd) Purge ¶
Purge deletes all the files and the container
Optional interface: Only implement this if you have a way of deleting all the files quicker than just running Remove() on the result of List()
func (*FsAcd) Put ¶
Put the object into the container
Copy the reader in to the new object which is returned ¶
The new object may have been created if an error is returned
type FsObjectAcd ¶
type FsObjectAcd struct {
// contains filtered or unexported fields
}
FsObjectAcd describes a acd object
Will definitely have info but maybe not meta
func (*FsObjectAcd) Md5sum ¶
func (o *FsObjectAcd) Md5sum() (string, error)
Md5sum returns the Md5sum of an object returning a lowercase hex string
func (*FsObjectAcd) ModTime ¶
func (o *FsObjectAcd) 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 (*FsObjectAcd) Open ¶
func (o *FsObjectAcd) Open() (in io.ReadCloser, err error)
Open an object for read
func (*FsObjectAcd) SetModTime ¶
func (o *FsObjectAcd) SetModTime(modTime time.Time)
Sets the modification time of the local fs object
func (*FsObjectAcd) Size ¶
func (o *FsObjectAcd) Size() int64
Size returns the size of an object in bytes