plugin

package
v0.0.0-...-b25413d Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func New

func New() *Manager

func (*Manager) Load

func (m *Manager) Load(path string) error

func (*Manager) Validator

func (m *Manager) Validator(name string) (sdkplugin.Validator, bool)

func (*Manager) Widget

func (m *Manager) Widget(name string) (sdkplugin.Widget, bool)

type Plugin

type Plugin struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

Plugin represents a loadable plugin or widget.

type Repository

type Repository interface {
	List(ctx context.Context) ([]Plugin, error)
}

Repository defines methods to list available plugins.

type Usecase

type Usecase struct {
	Repo Repository
}

Usecase provides plugin-related use cases.

func (Usecase) List

func (u Usecase) List(ctx context.Context) ([]Plugin, error)

List returns the available plugins.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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