Documentation
¶
Index ¶
- Constants
- type Definition
- type Service
- func (s *Service) Get(nodeType string) (Definition, bool)
- func (s *Service) List() []Definition
- func (s *Service) PluginStatuses() []plugins.BundleStatus
- func (s *Service) RefreshPlugins(ctx context.Context) error
- func (s *Service) ValidateDefinition(ctx context.Context, nodesJSON string, edgesJSON string, ...) error
- func (s *Service) ValidateFlowData(ctx context.Context, flowData pipeline.FlowData, allowUnavailablePlugins bool) error
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 (*Service) List ¶
func (s *Service) List() []Definition
func (*Service) PluginStatuses ¶
func (s *Service) PluginStatuses() []plugins.BundleStatus
func (*Service) ValidateDefinition ¶
Click to show internal directories.
Click to hide internal directories.