Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
type Probe struct { Name string // App名称 Site string // App官方站点 DocSite string // App文档站点 Developer string // App开发者 Author string // 探测器作者 }
探测器基本定义
type ProcessProbe ¶
type ProcessProbe struct { Probe CommandName string // 命令名 CommandPatterns []string // 命令行匹配模式 // 获取版本号信息的命令 // 支持以下变量: // - ${commandFile} 命令行文件路径 // - ${commandDir} 命令行文件所在目录 CommandVersion string // contains filtered or unexported fields }
func NewProcessProbe ¶
func NewProcessProbe() *ProcessProbe
func (*ProcessProbe) OnParseVersion ¶
func (this *ProcessProbe) OnParseVersion(parser func(versionString string) (string, error))
Click to show internal directories.
Click to hide internal directories.