Documentation ¶
Index ¶
Constants ¶
View Source
const PLUGIN_VERSION = "0.0.0"
PLUGIN_VERSION drone-feishu 插件本身的版本号
Variables ¶
This section is empty.
Functions ¶
func DefaultBuildFeishuContent ¶
func DefaultBuildFeishuContent(p *Plugin) *feishuRobotGo.RobotContent
func GetAllDroneEnv ¶ added in v0.5.0
func GetAllDroneEnv() (entries [][2]string)
Types ¶
type BuildInfo ¶
type BuildInfo struct { Tag string Event string Number int Parent int Commit string Ref string Branch string Author struct { Username string Name string Email string Avatar string } Pull string Message struct { Title string Body string } DeployTo string Status string Link string Started int64 Created int64 }
BuildInfo 针对的是step层级
type Plugin ¶
type Plugin struct { RepoInfo RepoInfo BuildInfo BuildInfo StageInfo StageInfo Config Config BuildFeishuContent func(p *Plugin) *feishuRobotGo.RobotContent }
func NewPlugin ¶
func NewPlugin(contentBuilder func(p *Plugin) *feishuRobotGo.RobotContent) *Plugin
func (*Plugin) ParseAppArgs ¶
ParseAppArgs 用cli.App中读取的环境变量来填充Plugin的数据
Source Files ¶
Click to show internal directories.
Click to hide internal directories.