Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDirectoryDriverStoreIn ¶
func NewDirectoryDriverStoreIn(driversDirectory string) domain.DriverStore
Types ¶
type DirectoryPluginStore ¶
type DirectoryPluginStore struct {
// contains filtered or unexported fields
}
DirectoryPluginStore is a PluginStore that search for plugins in a directory
func NewDirectoryPluginStore ¶
func NewDirectoryPluginStore(directory string) *DirectoryPluginStore
NewDirectoryPluginStore creates new DirectoryPluginStore that reads plugins from requested directory
func (DirectoryPluginStore) GetAll ¶
func (plugDir DirectoryPluginStore) GetAll() []GoPlugin
GetAll loaded plugins
func (*DirectoryPluginStore) Load ¶
func (plugDir *DirectoryPluginStore) Load() error
Load all plugins from directory
type PluginDriverStore ¶
type PluginDriverStore struct {
// contains filtered or unexported fields
}
PluginDriverStore is a DriverStore implementation that search for drivers in a PluginStore Its putpose is to pass plain plugins from PluginStore to Driver structs
func NewPluginDriverStore ¶
func NewPluginDriverStore() *PluginDriverStore
NewPluginDriverStore creates new PluginDriverStore
func (PluginDriverStore) GetAllDrivers ¶
func (driverStore PluginDriverStore) GetAllDrivers() []domain.Driver
func (PluginDriverStore) GetDriverByName ¶
func (driverStore PluginDriverStore) GetDriverByName(name string) (domain.Driver, error)
GetDriverByName of the known drivers. If no one matches, returns error
func (*PluginDriverStore) LoadUsing ¶
func (driverStore *PluginDriverStore) LoadUsing(pluginStore PluginStore) error
type PluginStore ¶
PluginStore represents a plugin storage, where you can load and get plugins.
Click to show internal directories.
Click to hide internal directories.