yaml_editor

package
v0.26.7 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Metadata = plugins.Module{
	Meta: plugins.Meta{
		Name:        modules.PluginNameYamlEditor,
		Title:       "YAML 编辑器",
		Version:     "1.0.0",
		Description: "YAML 编辑器,支持 YAML 配置的应用、删除、模板管理和历史记录功能。",
	},
	Tables: []string{
		"yaml_editor_templates",
	},
	Menus: []plugins.Menu{
		{
			Key:   "plugin_yaml_editor_index",
			Title: "YAML 编辑器",
			Icon:  "fa-solid fa-code",
			Order: 2,
			Children: []plugins.Menu{
				{
					Key:         "plugin_yaml_editor_main",
					Title:       "YAML管理",
					Icon:        "fa-solid fa-file-code",
					EventType:   "custom",
					CustomEvent: `() => loadJsonPage("/plugins/yaml_editor/main")`,
					Order:       10,
				},
				{
					Key:         "plugin_yaml_editor_template",
					Title:       "模板管理",
					Icon:        "fa-solid fa-layer-group",
					EventType:   "custom",
					CustomEvent: `() => loadJsonPage("/plugins/yaml_editor/template")`,
					Order:       20,
				},
			},
		},
	},
	Dependencies:     []string{},
	RunAfter:         []string{},
	Lifecycle:        &YamlEditorLifecycle{},
	ClusterRouter:    route.RegisterClusterRoutes,
	ManagementRouter: route.RegisterManagementRoutes,
}

Functions

This section is empty.

Types

type YamlEditorLifecycle

type YamlEditorLifecycle struct{}

func (*YamlEditorLifecycle) Disable

func (l *YamlEditorLifecycle) Disable(ctx plugins.BaseContext) error

func (*YamlEditorLifecycle) Enable

func (*YamlEditorLifecycle) Install

func (*YamlEditorLifecycle) Start

func (*YamlEditorLifecycle) StartCron

func (l *YamlEditorLifecycle) StartCron(ctx plugins.BaseContext, spec string) error

func (*YamlEditorLifecycle) Stop

func (*YamlEditorLifecycle) Uninstall

func (*YamlEditorLifecycle) Upgrade

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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