Documentation ¶
Index ¶
- Constants
- func ClearAddFlags(fs *flag.FlagSet) interface{}
- func ClearCmd(d *Dispatcher, ctx context.Context, args []string, fval interface{}) int
- func CpAddFlags(fs *flag.FlagSet) interface{}
- func CpCmd(d *Dispatcher, ctx context.Context, args []string, fval interface{}) int
- func GetAddFlags(fs *flag.FlagSet) interface{}
- func GetCmd(d *Dispatcher, ctx context.Context, args []string, fval interface{}) int
- func GrepAddFlags(fs *flag.FlagSet) interface{}
- func GrepCmd(d *Dispatcher, ctx context.Context, args []string, fval interface{}) int
- func HelpAddFlags(_ *flag.FlagSet) interface{}
- func HelpCmd(d *Dispatcher, ctx context.Context, args []string, _ interface{}) int
- func LsAddFlags(fs *flag.FlagSet) interface{}
- func LsCmd(d *Dispatcher, ctx context.Context, args []string, fval interface{}) int
- func PutAddFlags(fs *flag.FlagSet) interface{}
- func PutCmd(d *Dispatcher, ctx context.Context, args []string, fval interface{}) int
- func RmAddFlags(fs *flag.FlagSet) interface{}
- func RmCmd(d *Dispatcher, ctx context.Context, args []string, fval interface{}) int
- func ScriptAddFlags(fs *flag.FlagSet) interface{}
- func ScriptCmd(d *Dispatcher, ctx context.Context, args []string, fval interface{}) int
- func StatfsAddFlags(fs *flag.FlagSet) interface{}
- func StatfsCmd(d *Dispatcher, ctx context.Context, args []string, fval interface{}) int
- type AddFlagsFunc
- type ClearFlags
- type CpFlags
- type Dispatch
- type Dispatcher
- func (d *Dispatcher) AddAlias(alias, name string)
- func (d *Dispatcher) AddCommand(name, help string, runfn RunFunc, flagfn AddFlagsFunc)
- func (d *Dispatcher) AddTopic(name, help string)
- func (d *Dispatcher) Dispatch(args []string) int
- func (d *Dispatcher) Error(a ...interface{})
- func (d *Dispatcher) Errorf(format string, a ...interface{})
- func (d *Dispatcher) Info(a ...interface{})
- func (d *Dispatcher) Infof(format string, a ...interface{})
- func (d *Dispatcher) Print(a ...interface{})
- func (d *Dispatcher) Printerr(a ...interface{})
- func (d *Dispatcher) Printerrf(format string, a ...interface{})
- func (d *Dispatcher) Printerrln(a ...interface{})
- func (d *Dispatcher) Printf(format string, a ...interface{})
- func (d *Dispatcher) Println(a ...interface{})
- func (d *Dispatcher) Warning(a ...interface{})
- func (d *Dispatcher) Warningf(format string, a ...interface{})
- type GetFlags
- type GrepFlags
- type LsFlags
- type PutFlags
- type RmFlags
- type RunFunc
- type ScriptFlags
- type StatfsFlags
Constants ¶
View Source
const ClearHelpText = `Usage: casutil clear [--shred]
Removes all CAS blocks.
`
View Source
const CpHelpText = `Usage: casutil cp <addr>...
Copies the specified blocks from one CAS to another.
`
View Source
const GetHelpText = `` /* 290-byte string literal not displayed */
View Source
const GrepHelpText = `` /* 221-byte string literal not displayed */
View Source
const HelpHelpText = `Usage: casutil help [<topic>]
Prints help text on the requested topic.
`
View Source
const LsHelpText = `Usage: casutil ls [-0]
Lists all CAS blocks.
`
View Source
const PutHelpText = `` /* 252-byte string literal not displayed */
View Source
const RmHelpText = `` /* 131-byte string literal not displayed */
View Source
const ScriptHelpText = `Usage: casutil script [-x] <filename>...
Usage: ... | casutil script [-x] -
Executes commands from the named file.
`
View Source
const StatfsHelpText = `Usage: casutil statfs
Usage: casutil stat
Displays information about the size and health of a CAS backend.
`
Variables ¶
This section is empty.
Functions ¶
func ClearAddFlags ¶
func ClearCmd ¶
func ClearCmd(d *Dispatcher, ctx context.Context, args []string, fval interface{}) int
func CpAddFlags ¶
func GetAddFlags ¶
func GrepAddFlags ¶
func GrepCmd ¶
func GrepCmd(d *Dispatcher, ctx context.Context, args []string, fval interface{}) int
func HelpAddFlags ¶
func LsAddFlags ¶
func PutAddFlags ¶
func RmAddFlags ¶
func ScriptAddFlags ¶
func ScriptCmd ¶
func ScriptCmd(d *Dispatcher, ctx context.Context, args []string, fval interface{}) int
func StatfsAddFlags ¶
Types ¶
type AddFlagsFunc ¶
type ClearFlags ¶
type Dispatch ¶
type Dispatch struct { Name string Help string Run RunFunc AddFlags AddFlagsFunc Hidden bool }
type Dispatcher ¶
type Dispatcher struct { Dispatches []Dispatch GlobalFlags *flag.FlagSet GlobalHelp string RootContext context.Context In io.Reader Out io.Writer Err io.Writer Timeout time.Duration Backend string Source string }
func NewDispatcher ¶
func NewDispatcher(help string) *Dispatcher
func (*Dispatcher) AddAlias ¶
func (d *Dispatcher) AddAlias(alias, name string)
func (*Dispatcher) AddCommand ¶
func (d *Dispatcher) AddCommand(name, help string, runfn RunFunc, flagfn AddFlagsFunc)
func (*Dispatcher) AddTopic ¶
func (d *Dispatcher) AddTopic(name, help string)
func (*Dispatcher) Dispatch ¶
func (d *Dispatcher) Dispatch(args []string) int
func (*Dispatcher) Error ¶
func (d *Dispatcher) Error(a ...interface{})
func (*Dispatcher) Errorf ¶
func (d *Dispatcher) Errorf(format string, a ...interface{})
func (*Dispatcher) Info ¶
func (d *Dispatcher) Info(a ...interface{})
func (*Dispatcher) Infof ¶
func (d *Dispatcher) Infof(format string, a ...interface{})
func (*Dispatcher) Print ¶
func (d *Dispatcher) Print(a ...interface{})
func (*Dispatcher) Printerr ¶
func (d *Dispatcher) Printerr(a ...interface{})
func (*Dispatcher) Printerrf ¶
func (d *Dispatcher) Printerrf(format string, a ...interface{})
func (*Dispatcher) Printerrln ¶
func (d *Dispatcher) Printerrln(a ...interface{})
func (*Dispatcher) Printf ¶
func (d *Dispatcher) Printf(format string, a ...interface{})
func (*Dispatcher) Println ¶
func (d *Dispatcher) Println(a ...interface{})
func (*Dispatcher) Warning ¶
func (d *Dispatcher) Warning(a ...interface{})
func (*Dispatcher) Warningf ¶
func (d *Dispatcher) Warningf(format string, a ...interface{})
type ScriptFlags ¶
type ScriptFlags struct {
Trace bool
}
type StatfsFlags ¶
type StatfsFlags struct {
Backend string
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.