Documentation ¶
Index ¶
- Variables
- func NewTmplParse(text string) (*template.Template, error)
- func NewTmplParseSlice(texts []string) ([]*template.Template, error)
- func ShowCluster() (tea.Model, error)
- func ShowContainer(podName string, lastModel tea.Model) (tea.Model, error)
- func ShowPod(app string, lastModel tea.Model) (tea.Model, error)
- func TemplateRenderBody(name comm.ConfigTemplateName, data any) []string
- func TemplateRenderColumn(name comm.ConfigTemplateName) []table.Column
Constants ¶
This section is empty.
Variables ¶
View Source
var TemplateStore = &templateStore{ lock: new(sync.RWMutex), store: make(map[comm.ConfigTemplateName][]*template.Template), }
Functions ¶
func NewTmplParse ¶ added in v0.0.11
NewTmplParse 创建模板
func NewTmplParseSlice ¶ added in v0.0.11
NewTmplParseSlice 创建一组模板
func TemplateRenderBody ¶ added in v0.0.14
func TemplateRenderBody(name comm.ConfigTemplateName, data any) []string
TemplateRenderBody 根据名称批量渲染模板
func TemplateRenderColumn ¶ added in v0.0.14
func TemplateRenderColumn(name comm.ConfigTemplateName) []table.Column
TemplateRenderColumn render table column
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.