Documentation ¶
Index ¶
- type CLI
- type Client
- type Controller
- type ControllerStage
- type Dchan
- type DchanClose
- type DchanList
- type DchanSpeed
- type DchanUseful
- type DebugFlow
- type Flower
- type Login
- type ShellDebug
- type ShellDebugGoroutine
- type ShellDebugLog
- type ShellDig
- type ShellPing
- type ShellRoute
- type ShellRouteAdd
- type ShellRouteAddDomain
- type ShellRouteGet
- type ShellRouteRemove
- type ShellRouteShow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct { Help *flagly.CmdHelp `flagly:"handler"` Ping *ShellPing `flagly:"handler"` Route *ShellRoute `flagly:"handler"` Dig *ShellDig `flagly:"handler"` Controller *Controller `flagly:"handler"` Debug *ShellDebug `flagly:"handler"` Dchan *Dchan `flagly:"handler"` }
type Controller ¶
type Controller struct {
Stage *ControllerStage `flagly:"handler"`
}
type ControllerStage ¶
type ControllerStage struct{}
func (*ControllerStage) FlaglyHandle ¶
func (*ControllerStage) FlaglyHandle(c Client) error
type Dchan ¶
type Dchan struct { Useful *DchanUseful `flagly:"handler"` Close *DchanClose `flagly:"handler"` List *DchanList `flagly:"handler"` Speed *DchanSpeed `flagly:"handler"` }
type DchanClose ¶
type DchanClose struct {
Name string `type:"[0]"`
}
func (*DchanClose) FlaglyHandle ¶
func (d *DchanClose) FlaglyHandle(c Client) error
type DchanSpeed ¶
type DchanSpeed struct{}
func (DchanSpeed) FlaglyHandle ¶
func (DchanSpeed) FlaglyHandle(c Client) error
type DchanUseful ¶
type DchanUseful struct{}
func (DchanUseful) FlaglyHandle ¶
func (DchanUseful) FlaglyHandle(c Client) error
type DebugFlow ¶
type DebugFlow struct {
Name string `type:"[0]" select:"dchan.Client,controller"`
}
type ShellDebug ¶
type ShellDebug struct { Goroutine *ShellDebugGoroutine `flagly:"handler"` Log *ShellDebugLog `flagly:"handler"` Login *Login `flagly:"handler"` Flow *DebugFlow `flagly:"handler"` }
type ShellDebugGoroutine ¶
type ShellDebugGoroutine struct {
Find string `type:"[0]"`
}
func (ShellDebugGoroutine) FlaglyHandle ¶
func (s ShellDebugGoroutine) FlaglyHandle(rl *readline.Instance) error
type ShellDebugLog ¶
type ShellDebugLog struct {
Level string `type:"[0]" select:"debug,info,warn,error"`
}
func (ShellDebugLog) FlaglyHandle ¶
func (s ShellDebugLog) FlaglyHandle() error
type ShellRoute ¶
type ShellRoute struct { Add *ShellRouteAdd `flagly:"handler"` AddDomain *ShellRouteAddDomain `flagly:"handler"` Show *ShellRouteShow `flagly:"handler"` Remove *ShellRouteRemove `flagly:"handler"` Get *ShellRouteGet `flagly:"handler"` }
type ShellRouteAdd ¶
type ShellRouteAdd struct { Duration time.Duration `name:"d" desc:"ephemeral node duration time"` Force bool `name:"f" desc:"force execute even comment is missing"` CIDR string `type:"[0]"` Comment string `type:"[1]"` }
func (*ShellRouteAdd) FlaglyHandle ¶
func (arg *ShellRouteAdd) FlaglyHandle(c Client) (err error)
type ShellRouteAddDomain ¶
type ShellRouteAddDomain struct { Duration time.Duration `name:"d" desc:"ephemeral node duration time" default:"6h"` Host string `type:"[0]"` }
func (*ShellRouteAddDomain) FlaglyDesc ¶
func (arg *ShellRouteAddDomain) FlaglyDesc() string
func (*ShellRouteAddDomain) FlaglyHandle ¶
func (arg *ShellRouteAddDomain) FlaglyHandle(c Client, rl *readline.Instance) error
type ShellRouteGet ¶
type ShellRouteGet struct {
Host string `type:"[0]" name:"ip/host"`
}
-----------------------------------------------------------------------------
func (*ShellRouteGet) FlaglyHandle ¶
func (s *ShellRouteGet) FlaglyHandle(c Client) error
type ShellRouteRemove ¶
type ShellRouteRemove struct {
CIDR string `type:"[0]"`
}
func (*ShellRouteRemove) FlaglyHandle ¶
func (arg *ShellRouteRemove) FlaglyHandle(c Client) error
type ShellRouteShow ¶
type ShellRouteShow struct{}
func (ShellRouteShow) FlaglyHandle ¶
func (ShellRouteShow) FlaglyHandle(c Client, rl *readline.Instance) error
Click to show internal directories.
Click to hide internal directories.