tfnotify:一个CLI命令,用于解析Terraform执行结果并将其通知给GitHub-源码

上传者: 42131728 | 上传时间: 2021-02-03 14:05:14 | 文件大小: 159KB | 文件类型: ZIP
通知 tfnotify解析Terraform命令的执行结果,并将其应用于任意模板,然后通知给GitHub注释等。 动机 有一些命令,例如plan和apply on Terraform命令,但是许多开发人员认为他们想检查这些命令的执行是否成功。 Terraform命令通常是通过CI(例如Circle CI)执行的,但在这种情况下,您需要转到CI页面进行检查。 这很麻烦。 如果可以使用GitHub注释或Slack等进行检查,这将非常有效。您可以使用此命令执行此操作。 安装 从GitHub版本中获取二进制文件(推荐) 要么 $ go get -u github.com/mercari/tfnotify tfnotify做什么 解析Terraform的执行结果 将解析结果绑定到Go模板 随时将其通知任何平台(例如GitHub) 可以从配置文件(稍后描述)中自定义诸如模板和通知目标之类的详细规范。 用法 基本的 tfnotify只是CLI命令。 因此,您可以在获取二进制文件后从本地运行它。 基本上tfnotify等待来自Stdin的输入。 因此,tfnotify需要通过管道传递Terra

文件下载

资源详情

[{"title":"( 69 个子文件 159KB ) tfnotify:一个CLI命令,用于解析Terraform执行结果并将其通知给GitHub-源码","children":[{"title":"tfnotify-master","children":[{"title":"error.go <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"ci.go <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false},{"title":"go.mod <span style='color:#111;'> 759B </span>","children":null,"spread":false},{"title":"error_test.go <span style='color:#111;'> 732B </span>","children":null,"spread":false},{"title":"main.go <span style='color:#111;'> 8.13KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"ISSUE_TEMPLATE.md <span style='color:#111;'> 77B </span>","children":null,"spread":false},{"title":"PULL_REQUEST_TEMPLATE.md <span style='color:#111;'> 127B </span>","children":null,"spread":false},{"title":"CODEOWNERS <span style='color:#111;'> 71B </span>","children":null,"spread":false},{"title":"workflows","children":[{"title":"test.yml <span style='color:#111;'> 413B </span>","children":null,"spread":false},{"title":"reviewdog.yml <span style='color:#111;'> 382B </span>","children":null,"spread":false},{"title":"release.yml <span style='color:#111;'> 497B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"example-use-raw-output.tfnotify.yaml <span style='color:#111;'> 417B </span>","children":null,"spread":false},{"title":"go.sum <span style='color:#111;'> 7.17KB </span>","children":null,"spread":false},{"title":"ci_test.go <span style='color:#111;'> 19.09KB </span>","children":null,"spread":false},{"title":"example.tfnotify.yaml <span style='color:#111;'> 394B </span>","children":null,"spread":false},{"title":"config","children":[{"title":"config_test.go <span style='color:#111;'> 9.62KB </span>","children":null,"spread":false},{"title":"config.go <span style='color:#111;'> 5.87KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"example-with-destroy-and-result-labels.tfnotify.yaml <span style='color:#111;'> 766B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 9.84KB </span>","children":null,"spread":false},{"title":"tee.go <span style='color:#111;'> 412B </span>","children":null,"spread":false},{"title":".reviewdog.yml <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":".goreleaser.yml <span style='color:#111;'> 545B </span>","children":null,"spread":false},{"title":"notifier","children":[{"title":"notifier.go <span style='color:#111;'> 129B </span>","children":null,"spread":false},{"title":"slack","children":[{"title":"client.go <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"client_test.go <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"slack.go <span style='color:#111;'> 748B </span>","children":null,"spread":false},{"title":"slack_test.go <span style='color:#111;'> 395B </span>","children":null,"spread":false},{"title":"notify.go <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"notify_test.go <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false}],"spread":false},{"title":"gitlab","children":[{"title":"commits.go <span style='color:#111;'> 918B </span>","children":null,"spread":false},{"title":"client.go <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"comment_test.go <span style='color:#111;'> 2.60KB </span>","children":null,"spread":false},{"title":"client_test.go <span style='color:#111;'> 3.70KB </span>","children":null,"spread":false},{"title":"gitlab.go <span style='color:#111;'> 2.84KB </span>","children":null,"spread":false},{"title":"notify.go <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"comment.go <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"notify_test.go <span style='color:#111;'> 3.00KB </span>","children":null,"spread":false},{"title":"gitlab_test.go <span style='color:#111;'> 3.76KB </span>","children":null,"spread":false},{"title":"commits_test.go <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false}],"spread":false},{"title":"typetalk","children":[{"title":"client.go <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"client_test.go <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"typetalk_test.go <span style='color:#111;'> 500B </span>","children":null,"spread":false},{"title":"notify.go <span style='color:#111;'> 952B </span>","children":null,"spread":false},{"title":"notify_test.go <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"typetalk.go <span style='color:#111;'> 808B </span>","children":null,"spread":false}],"spread":false},{"title":"notifier_test.go <span style='color:#111;'> 17B </span>","children":null,"spread":false},{"title":"github","children":[{"title":"commits.go <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"client.go <span style='color:#111;'> 3.35KB </span>","children":null,"spread":false},{"title":"github_test.go <span style='color:#111;'> 6.07KB </span>","children":null,"spread":false},{"title":"comment_test.go <span style='color:#111;'> 4.67KB </span>","children":null,"spread":false},{"title":"client_test.go <span style='color:#111;'> 5.74KB </span>","children":null,"spread":false},{"title":"github.go <span style='color:#111;'> 4.28KB </span>","children":null,"spread":false},{"title":"notify.go <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"comment.go <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"notify_test.go <span style='color:#111;'> 5.29KB </span>","children":null,"spread":false},{"title":"commits_test.go <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"terraform","children":[{"title":"template.go <span style='color:#111;'> 8.08KB </span>","children":null,"spread":false},{"title":"terraform.go <span style='color:#111;'> 131B </span>","children":null,"spread":false},{"title":"parser_test.go <span style='color:#111;'> 19.90KB </span>","children":null,"spread":false},{"title":"parser.go <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false},{"title":"terraform_test.go <span style='color:#111;'> 18B </span>","children":null,"spread":false},{"title":"template_test.go <span style='color:#111;'> 11.27KB </span>","children":null,"spread":false}],"spread":false},{"title":".codecov.yml <span style='color:#111;'> 177B </span>","children":null,"spread":false},{"title":"misc","children":[{"title":"images","children":[{"title":"3.png <span style='color:#111;'> 61.45KB </span>","children":null,"spread":false},{"title":"1.png <span style='color:#111;'> 26.91KB </span>","children":null,"spread":false},{"title":"2.png <span style='color:#111;'> 28.69KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'> 314B </span>","children":null,"spread":false},{"title":"tee_test.go <span style='color:#111;'> 802B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明