Documentation
¶
Index ¶
- Variables
- type ExitConn
- type ExporterPluginConn
- type ImporterPluginConn
- type Plugin
- func (p *Plugin) Connect(ctx context.Context) (grpc.ClientConnInterface, ExitConn, error)
- func (plugin *Plugin) NewExporter(ktx *kcontext.KContext, proto string, params map[string]string, ...) (exporter.Exporter, error)
- func (plugin *Plugin) NewImporter(ktx *kcontext.KContext, proto string, params map[string]string, ...) (importer.Importer, error)
- func (plugin *Plugin) NewStorage(ktx *kcontext.KContext, proto string, params map[string]string) (storage.Store, error)
- type Registry
- func (registry *Registry) GetPlugin(name, version string, conntype pkg.ConnectorType, protocol string) (*Plugin, error)
- func (registry *Registry) ListPlugins() iter.Seq2[*Plugin, error]
- func (registry *Registry) RegisterPlugins(m *pkg.Manifest, p *pkg.Package, pkgdir string) error
- func (registry *Registry) UnregisterPlugins(m *pkg.Manifest, p *pkg.Package)
- type StdioConn
- func (c *StdioConn) Close() (ret error)
- func (c *StdioConn) Exited() <-chan struct{}
- func (c *StdioConn) LocalAddr() net.Addr
- func (c *StdioConn) Read(b []byte) (int, error)
- func (c *StdioConn) RemoteAddr() net.Addr
- func (c *StdioConn) SetDeadline(t time.Time) error
- func (c *StdioConn) SetReadDeadline(t time.Time) error
- func (c *StdioConn) SetWriteDeadline(t time.Time) error
- func (c *StdioConn) WaitErr() error
- func (c *StdioConn) Write(b []byte) (int, error)
- type StoragePluginConn
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ExitConn ¶
func ConnectPlugin ¶
type ExporterPluginConn ¶
type ImporterPluginConn ¶
type Plugin ¶
type Plugin struct {
Name string
Version string
Type pkg.ConnectorType
Protocol string
Flags location.Flags
Exec string
Args []string
}
func (*Plugin) NewExporter ¶
func (*Plugin) NewImporter ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) RegisterPlugins ¶
type StdioConn ¶
type StdioConn struct {
// contains filtered or unexported fields
}
func (*StdioConn) RemoteAddr ¶
type StoragePluginConn ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.