registry

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubRegistry added in v0.1.0

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

GitHubRegistry represents a GitHub plugin registry

func NewGitHubRegistry added in v0.1.0

func NewGitHubRegistry(config map[string]any, logger *zap.Logger, manager *manager.Manager) *GitHubRegistry

NewGitHubRegistry creates a new GitHub registry

func (*GitHubRegistry) GetPluginPath added in v0.1.0

func (r *GitHubRegistry) GetPluginPath() (string, error)

GetPluginPath downloads and returns the path to the GitHub plugin

func (*GitHubRegistry) Validate added in v0.1.0

func (r *GitHubRegistry) Validate() error

Validate validates the GitHub registry configuration

type LocalRegistry added in v0.1.0

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

LocalRegistry represents a local plugin registry

func NewLocalRegistry added in v0.1.0

func NewLocalRegistry(config map[string]any, logger *zap.Logger) *LocalRegistry

NewLocalRegistry creates a new local registry

func (*LocalRegistry) GetPluginPath added in v0.1.0

func (r *LocalRegistry) GetPluginPath() (string, error)

GetPluginPath returns the absolute path to the local plugin

func (*LocalRegistry) Validate added in v0.1.0

func (r *LocalRegistry) Validate() error

Validate validates the local registry configuration

type PluginRegistry added in v0.1.0

type PluginRegistry interface {
	// GetPluginPath returns the path to the plugin executable
	GetPluginPath() (string, error)

	// Validate validates the registry configuration
	Validate() error
}

PluginRegistry interface defines methods for plugin registry implementations

func NewPluginRegistry added in v0.1.0

func NewPluginRegistry(registryConfig config.RegistryConfig, logger *zap.Logger, manager *manager.Manager) (PluginRegistry, error)

NewPluginRegistry creates a new registry based on the configuration

type Registry

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

func NewRegistry

func NewRegistry(cfg map[string]config.PluginConfig, logger *zap.Logger) *Registry

func (*Registry) Close

func (r *Registry) Close()

func (*Registry) Plugins added in v0.0.14

func (r *Registry) Plugins() map[string]pb.PluginClient

type RegistryConfig added in v0.1.0

type RegistryConfig struct {
	Type   RegistryType   `yaml:"type"`
	Config map[string]any `yaml:"config"`
}

RegistryConfig represents the configuration for a plugin registry

type RegistryType added in v0.1.0

type RegistryType string

RegistryType represents the type of plugin registry

const (
	RegistryTypeLocal  RegistryType = "local"
	RegistryTypeGitHub RegistryType = "github"
)

Jump to

Keyboard shortcuts

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