Documentation ¶
Index ¶
- Constants
- func CleanTemplates()
- func CreateTemplate(templateName string, tickScript string) (*kapacitorclient.Template, error)
- func DeleteAllTemplates() error
- func DeleteTemplate(templateName string) error
- func GetTemplate(templateName string) (*kapacitorclient.Template, error)
- func ListTemplates() ([]kapacitorclient.Template, error)
- func RegisterTemplate()
- func UpdateTemplate(templateId string) (*kapacitorclient.Template, error)
- type TemplateBuilder
Constants ¶
View Source
const ( NamePattern = "dragonfly-*" FormatPattern = "dragonfly-%s" )
View Source
const (
TemplatePath = "/file/templates"
)
Variables ¶
This section is empty.
Functions ¶
func CleanTemplates ¶
func CleanTemplates()
func CreateTemplate ¶
func CreateTemplate(templateName string, tickScript string) (*kapacitorclient.Template, error)
func DeleteAllTemplates ¶
func DeleteAllTemplates() error
func DeleteTemplate ¶
func GetTemplate ¶
func GetTemplate(templateName string) (*kapacitorclient.Template, error)
func ListTemplates ¶
func ListTemplates() ([]kapacitorclient.Template, error)
func RegisterTemplate ¶
func RegisterTemplate()
func UpdateTemplate ¶
func UpdateTemplate(templateId string) (*kapacitorclient.Template, error)
Types ¶
type TemplateBuilder ¶
type TemplateBuilder struct{}
Click to show internal directories.
Click to hide internal directories.