Documentation ¶
Index ¶
- func NewClientForToken(accessToken string) *http.Client
- type Fs
- func (f *Fs) Features() *fs.Features
- func (f *Fs) Hashes() fs.HashSet
- func (f *Fs) List(dir string) (entries fs.DirEntries, err error)
- func (f *Fs) Mkdir(dir string) error
- func (f *Fs) Name() string
- func (f *Fs) Precision() time.Duration
- func (f *Fs) Put(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error)
- func (f *Fs) PutStream(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error)
- func (f *Fs) Root() string
- func (f *Fs) SetRoot(dir string)
- func (f *Fs) SetToken(accessToken string)
- func (f *Fs) SetTokenSimple(accessToken string)
- func (f *Fs) String() string
- type Object
- func (o *Object) Fs() fs.Info
- func (o *Object) Hash(t fs.HashType) (string, error)
- func (o *Object) ModTime() time.Time
- func (o *Object) Open(options ...fs.OpenOption) (in io.ReadCloser, err error)
- func (o *Object) Remote() string
- func (o *Object) Remove() (err error)
- func (o *Object) SetModTime(modTime time.Time) error
- func (o *Object) Size() int64
- func (o *Object) Storable() bool
- func (o *Object) String() string
- func (o *Object) Update(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientForToken ¶
Types ¶
type Fs ¶
type Fs struct {
// contains filtered or unexported fields
}
Fs represents a remote dropbox server
func NewFsToken ¶
func (*Fs) Put ¶
func (f *Fs) Put(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error)
Put the object
Copy the reader in to the new object which is returned ¶
The new object may have been created if an error is returned
func (*Fs) PutStream ¶
func (f *Fs) PutStream(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error)
PutStream uploads to the remote path with the modTime given of indeterminate size
func (*Fs) SetTokenSimple ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object describes a dropbox object
Dropbox Objects always have full metadata
func (*Object) ModTime ¶
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 (*Object) Open ¶
func (o *Object) Open(options ...fs.OpenOption) (in io.ReadCloser, err error)
Open an object for read
func (*Object) SetModTime ¶
SetModTime sets the modification time of the local fs object
Commits the datastore
Click to show internal directories.
Click to hide internal directories.