view

package
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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

func NewTmplParse(text string) (*template.Template, error)

NewTmplParse 创建模板

func NewTmplParseSlice added in v0.0.11

func NewTmplParseSlice(texts []string) ([]*template.Template, error)

NewTmplParseSlice 创建一组模板

func ShowCluster

func ShowCluster() (tea.Model, error)

ShowCluster 获取k8s Pod列表

func ShowContainer

func ShowContainer(podName string, lastModel tea.Model) (tea.Model, error)

func ShowPod

func ShowPod(app string, lastModel tea.Model) (tea.Model, error)

ShowPod 获取POD列表

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL