Documentation ¶
Index ¶
- Variables
- func CompleteFamily(s string) (list []string)
- func CompleteFile(s string) (list []string)
- func CompleteIfName(s string) (list []string)
- func NoComplete(string) []string
- type Gid
- type Newline
- type Options
- func (opt *Options) Afs() []uint8
- func (opt *Options) Name(args []string) ([]string, error)
- func (opt *Options) Nprint(n int, args ...interface{}) (int, error)
- func (opt *Options) OnlyName(args []string) error
- func (opt *Options) Print(args ...interface{}) (int, error)
- func (opt *Options) Println(args ...interface{}) (int, error)
- func (opt *Options) ShowIfAddr(b []byte, withCacheInfo bool)
- func (opt *Options) ShowIfAddrLbl(b []byte)
- func (opt *Options) ShowIfFlags(iff uint32)
- func (opt *Options) ShowIfInfo(b []byte)
- func (opt *Options) ShowIfStats(val []byte)
- func (opt *Options) ShowIflaVf(b []byte)
- func (opt *Options) ShowNeigh(b []byte)
- func (opt *Options) ShowNetconf(b []byte)
- func (opt *Options) ShowPrefix(b []byte)
- func (opt *Options) ShowRoute(b []byte)
- func (opt *Options) ShowRule(b []byte)
- func (opt *Options) ShowVfStats(vfstats [][]byte)
- func (opt *Options) Vprint(v interface{}) (n int, err error)
- type Stat
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Family = []interface{}{"-4", "-6", "-B", "-M", "-0"} Flags = []interface{}{ []string{"-h", "-human", "-human-readable"}, []string{"-s", "-stats", "-statistics"}, []string{"-d", "-details"}, []string{"-o", "-oneline"}, []string{"-r", "-resolve"}, []string{"-a", "-all"}, []string{"-c", "-color"}, []string{"-t", "-timestamp"}, []string{"-ts", "-tshort"}, "-iec", } Parms = []interface{}{ []string{"-l", "-loops"}, []string{"-f", "-family"}, []string{"-rc", "-rcvbuf"}, } CompleteParmValue = map[string]func(string) []string{ "-l": NoComplete, "-loops": NoComplete, "-rc": NoComplete, "-rcvbuf": NoComplete, "-f": CompleteFamily, "-family": CompleteFamily, } CompleteOptNames = []string{ "-human-readable", "-statistics", "-details", "-oneline", "-resolve", "-all", "-color", "-timestamp", "-tshort", "-iec", "-family", "-loops", "-rcvbuf", } )
Functions ¶
func CompleteFamily ¶
func CompleteFile ¶
func CompleteIfName ¶
func NoComplete ¶
Types ¶
type Options ¶
func (*Options) Nprint ¶
Print args then pad with spaces to at least N runes. If the printed args were more than N runes, pad with 1 space.
func (*Options) ShowIfAddr ¶
func (*Options) ShowIfAddrLbl ¶
func (*Options) ShowIfFlags ¶
func (*Options) ShowIfInfo ¶
func (*Options) ShowIfStats ¶
func (*Options) ShowIflaVf ¶
func (*Options) ShowNetconf ¶
func (*Options) ShowPrefix ¶
func (*Options) ShowVfStats ¶
Click to show internal directories.
Click to hide internal directories.