command

package
v0.0.0-...-f1e43fe Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILER_TOML_EXAMPLE = `` /* 2328-byte string literal not displayed */

	NOTIFICATION_TOML_EXAMPLE = `` /* 2045-byte string literal not displayed */

	REPLICATION_TOML_EXAMPLE = `` /* 2152-byte string literal not displayed */

	SECURITY_TOML_EXAMPLE = `` /* 1222-byte string literal not displayed */

	MASTER_TOML_EXAMPLE = `` /* 481-byte string literal not displayed */

)

Variables

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

Functions

func Readln

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

func RunMount

func RunMount(filer, filerMountRootPath, dir, collection, replication, dataCenter string, chunkSizeLimitMB int,
	allowOthers bool, ttlSec int, dirListingLimit int, umask os.FileMode) bool

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 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 FileCopyTask

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

type FileCopyWorker

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

type FilerOptions

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

type MasterOptions

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

type MountOptions

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

type S3Options

type S3Options 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 VolumeFileScanner4Export

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

func (*VolumeFileScanner4Export) ReadNeedleBody

func (scanner *VolumeFileScanner4Export) ReadNeedleBody() bool

func (*VolumeFileScanner4Export) VisitNeedle

func (scanner *VolumeFileScanner4Export) VisitNeedle(n *needle.Needle, offset int64) error

func (*VolumeFileScanner4Export) VisitSuperBlock

func (scanner *VolumeFileScanner4Export) VisitSuperBlock(superBlock storage.SuperBlock) error

type VolumeFileScanner4Fix

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

func (*VolumeFileScanner4Fix) ReadNeedleBody

func (scanner *VolumeFileScanner4Fix) ReadNeedleBody() bool

func (*VolumeFileScanner4Fix) VisitNeedle

func (scanner *VolumeFileScanner4Fix) VisitNeedle(n *needle.Needle, offset int64) error

func (*VolumeFileScanner4Fix) VisitSuperBlock

func (scanner *VolumeFileScanner4Fix) VisitSuperBlock(superBlock storage.SuperBlock) error

type VolumeServerOptions

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

type WebDavOption

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

Jump to

Keyboard shortcuts

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