Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectResponse ¶
type PluginClient ¶
type PluginClient struct {
shared.TailpipePluginClientWrapper
Name string
// contains filtered or unexported fields
}
PluginClient is the client object used by clients of the plugin
func NewPluginClient ¶
func NewPluginClient(client *plugin.Client, pluginName string) (*PluginClient, error)
func (*PluginClient) Exited ¶
func (c *PluginClient) Exited() bool
Exited returned whether the underlying client has exited, i.e. the plugin has terminated
type PluginManager ¶
type PluginManager struct {
// map of running plugins, keyed by plugin name
Plugins map[string]*PluginClient
// contains filtered or unexported fields
}
func New ¶
func New(o Observer, inboxPath string) *PluginManager
func (*PluginManager) Close ¶
func (p *PluginManager) Close()
func (*PluginManager) Collect ¶
func (p *PluginManager) Collect(ctx context.Context, partition *config.Partition, collectionState string) (*CollectResponse, error)
Collect starts the plugin if needed, discovers the artifacts and download them for the given partition.
Click to show internal directories.
Click to hide internal directories.