Documentation
¶
Overview ¶
filepath: /Users/Justin.Neubert/projects/v1flows/v1Flows/runner/pkg/plugins/download.go
filepath: /Users/Justin.Neubert/projects/v1flows/v1Flows/runner/pkg/plugins/init.go
filepath: /Users/Justin.Neubert/projects/v1flows/v1Flows/runner/pkg/plugins/plugin.go
Index ¶
- func CleanupUnusedPlugins(pluginRepos []config.PluginConfig, pluginDir string) error
- func DownloadAndBuildPlugins(pluginRepos []config.PluginConfig, buildDir string, pluginDir string) (map[string]string, error)
- func Init(cfg config.Config) (loadedPlugin map[string]Plugin, plugins []shared_models.Plugin, ...)
- func ShutdownPlugins()
- type EndpointRequest
- type ExecuteTaskRequest
- type InfoRequest
- type Plugin
- type PluginRPC
- type PluginRPCServer
- type PluginServer
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupUnusedPlugins ¶
func CleanupUnusedPlugins(pluginRepos []config.PluginConfig, pluginDir string) error
func DownloadAndBuildPlugins ¶
func DownloadAndBuildPlugins(pluginRepos []config.PluginConfig, buildDir string, pluginDir string) (map[string]string, error)
DownloadAndBuildPlugins downloads and builds plugins from GitHub
func Init ¶
func Init(cfg config.Config) (loadedPlugin map[string]Plugin, plugins []shared_models.Plugin, actionPlugins []shared_models.Plugin, endpointPlugins []shared_models.Plugin)
Types ¶
type EndpointRequest ¶
type ExecuteTaskRequest ¶
type ExecuteTaskRequest struct {
Args map[string]string
Config config.Config
Flow shared_models.Flows
FlowBytes []byte
Execution shared_models.Executions
Step shared_models.ExecutionSteps
Alert af_models.Alerts
Platform string
Workspace string
}
type InfoRequest ¶ added in v1.0.1
type Plugin ¶
type Plugin interface {
ExecuteTask(request ExecuteTaskRequest) (Response, error)
EndpointRequest(request EndpointRequest) (Response, error)
Info(request InfoRequest) (shared_models.Plugin, error)
}
Plugin interface that all plugins must implement
type PluginRPC ¶
PluginRPC is an implementation of net/rpc for Plugin
func (*PluginRPC) EndpointRequest ¶
func (p *PluginRPC) EndpointRequest(request EndpointRequest) (Response, error)
func (*PluginRPC) ExecuteTask ¶
func (p *PluginRPC) ExecuteTask(request ExecuteTaskRequest) (Response, error)
func (*PluginRPC) Info ¶
func (p *PluginRPC) Info(request InfoRequest) (shared_models.Plugin, error)
type PluginRPCServer ¶
type PluginRPCServer struct {
Impl Plugin
}
PluginRPCServer is the RPC server for Plugin
func (*PluginRPCServer) EndpointRequest ¶
func (s *PluginRPCServer) EndpointRequest(request EndpointRequest, resp *Response) error
func (*PluginRPCServer) ExecuteTask ¶
func (s *PluginRPCServer) ExecuteTask(request ExecuteTaskRequest, resp *Response) error
func (*PluginRPCServer) Info ¶
func (s *PluginRPCServer) Info(request InfoRequest, resp *shared_models.Plugin) error
type PluginServer ¶
type PluginServer struct {
Impl Plugin
}
PluginServer is the implementation of plugin.Plugin interface
Click to show internal directories.
Click to hide internal directories.