37 Star 403 Fork 75

GVPrancher/rancher

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
template.go 923 Bytes
一键复制 编辑 原始数据 按行查看 历史
Aiwantaozi 提交于 2019-04-08 18:10 . Refactoring logging template
package generator
var Template = `
{{define "cluster-template" }}
{{- if .IncludeRke }}
{{- template "source-rke" . -}}
{{- template "filter-rke" . -}}
{{end }}
{{- template "source-container" . -}}
{{- template "filter-container" . -}}
{{- template "filter-custom-tags" . -}}
{{- template "filter-prometheus" . -}}
{{- template "filter-exclude-system-component" . -}}
{{- template "filter-sumo" . -}}
{{- template "match" . -}}
{{end}}
{{define "project-template" }}
{{ range $i, $store := . }}
{{- if $store.IncludeRke }}
{{- template "source-rke" $store -}}
{{- template "filter-rke" $store -}}
{{end }}
{{- template "source-container" $store -}}
{{- template "filter-container" $store -}}
{{- template "filter-custom-tags" $store -}}
{{- template "filter-project-namespace" $store -}}
{{- template "filter-prometheus" $store -}}
{{- template "filter-sumo" $store -}}
{{- template "match" $store -}}
{{end}}
{{end}}
`
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/rancher/rancher.git
git@gitee.com:rancher/rancher.git
rancher
rancher
rancher
v2.2.12-rc2

搜索帮助