Documentation ¶
Index ¶
- func NewFs(name, root string, m configmap.Mapper) (ff fs.Fs, err error)
- type Fs
- func (f *Fs) About() (*fs.Usage, error)
- func (f *Fs) Copy(src fs.Object, remote string) (fs.Object, error)
- func (f *Fs) DirMove(src fs.Fs, srcRemote, dstRemote string) error
- func (f *Fs) Features() *fs.Features
- func (f *Fs) Hashes() hash.Set
- func (f *Fs) List(dir string) (entries fs.DirEntries, err error)
- func (f *Fs) Mkdir(dir string) error
- func (f *Fs) Move(src fs.Object, remote string) (fs.Object, error)
- func (f *Fs) Name() string
- func (f *Fs) NewObject(remote string) (obj fs.Object, err error)
- func (f *Fs) Precision() time.Duration
- func (f *Fs) PublicLink(remote string) (string, error)
- func (f *Fs) Purge() error
- func (f *Fs) Put(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (obj fs.Object, err error)
- func (f *Fs) PutStream(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error)
- func (f *Fs) Rmdir(dir string) error
- func (f *Fs) Root() string
- func (f *Fs) String() string
- type Object
- func (o *Object) Fs() fs.Info
- func (o *Object) Hash(typ hash.Type) (string, error)
- func (o *Object) ModTime() time.Time
- func (o *Object) Open(options ...fs.OpenOption) (io.ReadCloser, error)
- func (o *Object) Remote() string
- func (o *Object) Remove() error
- func (o *Object) SetModTime(mtime 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
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fs ¶
type Fs struct {
// contains filtered or unexported fields
}
A Fs is a representation of a remote Koofr Fs
func (*Fs) List ¶
func (f *Fs) List(dir string) (entries fs.DirEntries, err error)
List returns a list of items in a directory
func (*Fs) Mkdir ¶
Mkdir creates a directory at the given remote path. Creates ancestors if necessary
func (*Fs) PublicLink ¶
PublicLink creates a public link to the remote path
func (*Fs) Put ¶
func (f *Fs) Put(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (obj fs.Object, err error)
Put updates a remote Object
func (*Fs) PutStream ¶
func (f *Fs) PutStream(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error)
PutStream updates a remote Object with a stream of unknown size
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
An Object on the remote Koofr Fs
func (*Object) Open ¶
func (o *Object) Open(options ...fs.OpenOption) (io.ReadCloser, error)
Open opens the Object for reading
func (*Object) SetModTime ¶
SetModTime is not supported
func (*Object) Update ¶
func (o *Object) Update(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) error
Update updates the Object contents
Click to show internal directories.
Click to hide internal directories.