Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Schema ¶ added in v0.0.2
type Schema struct {
SchemaVersion [3]int `json:"schema_version"`
Commands []SchemaCommand `json:"commands"`
SchemaGeneratedAt time.Time `json:"schema_generated_at"`
}
type SchemaCommand ¶ added in v0.0.2
type SchemaCommand struct {
Alpha bool `json:"alpha"`
Use string `json:"use"`
Aliases []string `json:"aliases"`
Short string `json:"short"`
Long string `json:"long"`
Run SchemaCommandRun `json:"run"`
Flags []SchemaCommandFlag `json:"flags"`
Commands []SchemaCommand `json:"commands"`
Wait bool `json:"wait"`
DefaultFormat string `json:"default-format"`
CacheFile string `json:"cache-file"`
DontSortFlags bool `json:"dont-sort-flags"`
Interactive bool `json:"interactive"`
CliUsage string `json:"cliUsage"`
CliPreRunHooks []SchemaCommandCliPreRunHook `json:"cliPreRunHooks"`
}
type SchemaCommandCliPreRunHook ¶ added in v1.0.9
type SchemaCommandField ¶ added in v0.0.2
type SchemaCommandField struct {
Name string `json:"name"`
Flag string `json:"flag"`
From string `json:"from"`
Parsers []SchemaCommandFieldParser `json:"parsers"`
Long bool `json:"long"`
Array bool `json:"array"`
Bool bool `json:"bool"`
Number bool `json:"number"`
Wait string `json:"wait"`
WaitPrintField string `json:"waitPrintField"`
WaitError string `json:"waitError"`
Hide bool `json:"hide"`
FromFile bool `json:"fromFile"`
}
type SchemaCommandFieldParser ¶ added in v0.0.2
type SchemaCommandFlag ¶ added in v0.0.2
type SchemaCommandFlag struct {
Name string `json:"name"`
Usage string `json:"usage"`
Required bool `json:"required"`
Array bool `json:"array"`
Default string `json:"default"`
Bool bool `json:"bool"`
Processing []SchemaCommandFlagProcessing `json:"processing"`
ValidateRegex string `json:"validate-regex"`
LongName string `json:"long-name"`
SelectfromServeroption string `json:"selectfrom-serveroption"`
ValidatePassword bool `json:"validate-password"`
ValidateBoolean bool `json:"validate-boolean"`
ValidateIntegerMin int `json:"validate-integer-min"`
ValidateIntegerMax int `json:"validate-integer-max"`
ValidateValues []string `json:"validate-values"`
}
type SchemaCommandFlagProcessing ¶ added in v0.1.1
type SchemaCommandFlagProcessing struct {
Method string `json:"method"`
Args interface{} `json:"args"`
}
type SchemaCommandList ¶ added in v0.0.2
type SchemaCommandList struct {
Name string `json:"name"`
Key string `json:"key"`
Type string `json:"type"`
Fields []SchemaCommandField `json:"fields"`
}
type SchemaCommandRun ¶ added in v0.0.2
type SchemaCommandRun struct {
Cmd string `json:"cmd"`
Path string `json:"path"`
Method string `json:"method"`
Fields []SchemaCommandField `json:"fields"`
Lists []SchemaCommandList `json:"lists"`
ServerMethod string `json:"serverMethod"`
ParseStatisticsResponse bool `json:"ParseStatisticsResponse"`
SimpleJsonServerResponse bool `json:"SimpleJsonServerResponse"`
ComplexJsonServerResponse bool `json:"ComplexJsonServerResponse"`
}
type ServerIdsDryrunResponse ¶ added in v0.1.1
type ServersSshInfo ¶ added in v0.1.3
type ServersSshInfo struct {
ExternalIp string `json:"externalIp"`
}
Click to show internal directories.
Click to hide internal directories.