mfsexec

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMounter

func NewMounter() (mount.Interface, error)

NewMounter ...

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func New

func New(dir, mfsServer string) (*Runner, error)

New mfs executor for operating on directories.

func (*Runner) GetAvailableCap

func (r *Runner) GetAvailableCap(ctx context.Context) (int64, error)

GetAvailableCap returns available capacity of the moosefs cluster.

func (*Runner) GetQuota

func (r *Runner) GetQuota(ctx context.Context, path string) (used, avail int64, err error)

func (*Runner) SetQuota

func (r *Runner) SetQuota(ctx context.Context, path string, size int64) error

SetQuota for the volume at path, size in bytes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL