command

package
v0.0.0-...-9931aa1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = []*Command{
	cmdBenchmark,
	cmdBackup,
	cmdCompact,
	cmdCopy,
	cmdFix,
	cmdServer,
	cmdMaster,
	cmdFiler,
	cmdUpload,
	cmdDownload,
	cmdShell,
	cmdVersion,
	cmdVolume,
	cmdExport,
	cmdMount,
}

Functions

func Readln

func Readln(r *bufio.Reader) ([]byte, error)

func WriteFile

func WriteFile(filename string, data []byte, perm os.FileMode) error

Types

type BackupOptions

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

type BenchmarkOptions

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

type Command

type Command struct {
	// Run runs the command.
	// The args are the arguments after the command name.
	Run func(cmd *Command, args []string) bool

	// UsageLine is the one-line usage message.
	// The first word in the line is taken to be the command name.
	UsageLine string

	// Short is the short description shown in the 'go help' output.
	Short string

	// Long is the long message shown in the 'go help <this-command>' output.
	Long string

	// Flag is a set of flags specific to this command.
	Flag flag.FlagSet

	IsDebug *bool
}

func (*Command) Name

func (c *Command) Name() string

Name returns the command's name: the first word in the usage line.

func (*Command) Runnable

func (c *Command) Runnable() bool

Runnable reports whether the command can be run; otherwise it is a documentation pseudo-command such as importpath.

func (*Command) Usage

func (c *Command) Usage()

type CopyOptions

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

type Dir

type Dir struct {
	Id        uint64
	Path      string
	DirentMap map[string]*fuse.Dirent
}

func (*Dir) Attr

func (dir *Dir) Attr(context context.Context, attr *fuse.Attr) error

func (*Dir) Lookup

func (dir *Dir) Lookup(ctx context.Context, name string) (fs.Node, error)

func (*Dir) ReadDirAll

func (dir *Dir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

func (*Dir) Remove

func (dir *Dir) Remove(ctx context.Context, req *fuse.RemoveRequest) error

type DownloadOptions

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

type ExportOptions

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

type FakeReader

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

a fake reader to generate content to upload

func (*FakeReader) Read

func (l *FakeReader) Read(p []byte) (n int, err error)

func (*FakeReader) WriteTo

func (l *FakeReader) WriteTo(w io.Writer) (n int64, err error)

type File

type File struct {
	Id     uint64
	FileId filer.FileId
	Name   string
}

func (*File) Attr

func (file *File) Attr(context context.Context, attr *fuse.Attr) error

func (*File) ReadAll

func (file *File) ReadAll(ctx context.Context) ([]byte, error)

type FilerOptions

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

type MountOptions

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

type ServerOptions

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

type UploadOptions

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

type VolumeServerOptions

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

type WFS

type WFS struct{}

func (WFS) Root

func (WFS) Root() (fs.Node, error)

Jump to

Keyboard shortcuts

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