Documentation ¶
Index ¶
- func Mount(config Config, verbose bool) (*mountlib.MountPoint, error)
- func NewFs(ctx context.Context, config Config) (fs.Fs, error)
- type Config
- type Filesystem
- func (f *Filesystem) Features() *fs.Features
- func (f *Filesystem) Hashes() hash.Set
- func (f *Filesystem) List(ctx context.Context, dir string) (entries fs.DirEntries, err error)
- func (f *Filesystem) Mkdir(ctx context.Context, dir string) error
- func (f *Filesystem) Move(ctx context.Context, src fs.Object, remote string) (fs.Object, error)
- func (f *Filesystem) Name() string
- func (f *Filesystem) NewObject(ctx context.Context, remote string) (fs.Object, error)
- func (f *Filesystem) Precision() time.Duration
- func (f *Filesystem) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error)
- func (f *Filesystem) Rmdir(ctx context.Context, dir string) error
- func (f *Filesystem) Root() string
- func (f *Filesystem) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Client *menmos.Client Profile string `json:"profile"` Mountpoint string `json:"mount_point"` Mount map[string]interface{} `json:"mount"` }
A Config regroups configuration options.
type Filesystem ¶
type Filesystem struct { Client *menmos.Client // contains filtered or unexported fields }
Filesystem provides access to a menmos cluster.
func (*Filesystem) Features ¶
func (f *Filesystem) Features() *fs.Features
Features returns the supported features of this filesystem.
func (*Filesystem) Hashes ¶
func (f *Filesystem) Hashes() hash.Set
Hashes returns the supported hash types of this filesystem.
func (*Filesystem) List ¶
func (f *Filesystem) List(ctx context.Context, dir string) (entries fs.DirEntries, err error)
func (*Filesystem) Precision ¶
func (f *Filesystem) Precision() time.Duration
Precision returns the timestamp precision of the filesystem. For Menmos, this is seconds.
func (*Filesystem) Put ¶
func (f *Filesystem) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error)
func (*Filesystem) Root ¶
func (f *Filesystem) Root() string
Root returns the mounted filesystem root.
func (*Filesystem) String ¶
func (f *Filesystem) String() string
String returns a description of the FS
Source Files ¶
Click to show internal directories.
Click to hide internal directories.