nodedefs

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceBuiltin = "builtin"
	SourcePlugin  = "plugin"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Type          string                   `json:"type"`
	Category      string                   `json:"category"`
	Source        string                   `json:"source"`
	PluginID      string                   `json:"plugin_id,omitempty"`
	PluginName    string                   `json:"plugin_name,omitempty"`
	Label         string                   `json:"label"`
	Description   string                   `json:"description,omitempty"`
	Icon          string                   `json:"icon,omitempty"`
	Color         string                   `json:"color,omitempty"`
	MenuPath      []string                 `json:"menu_path,omitempty"`
	DefaultConfig map[string]any           `json:"default_config,omitempty"`
	Fields        []pluginapi.FieldSpec    `json:"fields,omitempty"`
	Outputs       []pluginapi.OutputHandle `json:"outputs,omitempty"`
	OutputHints   []pluginapi.OutputHint   `json:"output_hints,omitempty"`
}

func BuiltinDefinitions

func BuiltinDefinitions() []Definition

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(pluginManager *plugins.Manager) *Service

func (*Service) Get

func (s *Service) Get(nodeType string) (Definition, bool)

func (*Service) List

func (s *Service) List() []Definition

func (*Service) PluginStatuses

func (s *Service) PluginStatuses() []plugins.BundleStatus

func (*Service) RefreshPlugins

func (s *Service) RefreshPlugins(ctx context.Context) error

func (*Service) ValidateDefinition

func (s *Service) ValidateDefinition(ctx context.Context, nodesJSON string, edgesJSON string, allowUnavailablePlugins bool) error

func (*Service) ValidateFlowData

func (s *Service) ValidateFlowData(ctx context.Context, flowData pipeline.FlowData, allowUnavailablePlugins bool) error

Jump to

Keyboard shortcuts

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