Documentation ¶
Index ¶
- Variables
- func Initialize(l log.Logger) (*models.PluginRepository, error)
- func InstallPlugins(conf *config.ServerConfig) error
- type Assets
- type EvaluatorFactory
- type IPluginManager
- type PluginGetter
- type PluginManager
- type PluginService
- func (s PluginService) ConstructDestinationURN(_ context.Context, taskName string, compiledConfig map[string]string) (resource.URN, error)
- func (s PluginService) IdentifyUpstreams(ctx context.Context, taskName string, compiledConfig, assets map[string]string) ([]resource.URN, error)
- func (s PluginService) Info(_ context.Context, taskName string) (*plugin.Info, error)
- type UpstreamIdentifierFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // for plugin installation, discovery & sync on both client and server PluginsDir = ".plugins" PluginsArchiveName = "yaml-plugins.zip" )
Functions ¶
func Initialize ¶
func Initialize(l log.Logger) (*models.PluginRepository, error)
func InstallPlugins ¶
func InstallPlugins(conf *config.ServerConfig) error
used during server start also exposed as cmd
Types ¶
type EvaluatorFactory ¶ added in v0.10.2
type IPluginManager ¶
type PluginGetter ¶ added in v0.10.2
type PluginManager ¶
type PluginManager struct {
// contains filtered or unexported fields
}
func NewPluginManager ¶
func NewPluginManager(logLevel config.LogLevel) *PluginManager
func (*PluginManager) Archive ¶
func (p *PluginManager) Archive(archiveName string) error
func (*PluginManager) Install ¶
func (p *PluginManager) Install(dst string, sources ...string) error
func (*PluginManager) UnArchive ¶
func (p *PluginManager) UnArchive(src, dest string) error
type PluginService ¶ added in v0.10.2
type PluginService struct {
// contains filtered or unexported fields
}
func NewPluginService ¶ added in v0.10.2
func NewPluginService(logger log.Logger, pluginGetter PluginGetter, upstreamIdentifierFactory UpstreamIdentifierFactory, evaluatorFactory EvaluatorFactory) (*PluginService, error)
func (PluginService) ConstructDestinationURN ¶ added in v0.10.2
func (PluginService) IdentifyUpstreams ¶ added in v0.10.2
type UpstreamIdentifierFactory ¶ added in v0.10.2
type UpstreamIdentifierFactory interface {
GetBQUpstreamIdentifier(ctx context.Context, svcAcc string, evaluators ...evaluator.Evaluator) (upstreamidentifier.UpstreamIdentifier, error)
}
Click to show internal directories.
Click to hide internal directories.