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 ¶
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" )