Documentation ¶
Overview ¶
Package registry is the central hub for Drivers and other types that follow the init-time registration.
Index ¶
- Variables
- func ClientDrivers() <-chan types.ClientDriver
- func ConfigRegs(ctx types.Context) <-chan gofig.ConfigRegistration
- func IntegrationDrivers() <-chan types.IntegrationDriver
- func NewClientDriver(name string) (types.ClientDriver, error)
- func NewIntegrationDriver(name string) (types.IntegrationDriver, error)
- func NewIntegrationDriverManager(d types.IntegrationDriver) types.IntegrationDriver
- func NewOSDriver(name string) (types.OSDriver, error)
- func NewOSDriverManager(d types.OSDriver) types.OSDriver
- func NewStorageDriver(name string) (types.StorageDriver, error)
- func NewStorageDriverManager(d types.StorageDriver) types.StorageDriver
- func NewStorageDriverManagerWithLogin(d types.StorageDriverWithLogin) types.StorageDriverWithLogin
- func NewStorageExecutor(name string) (types.StorageExecutor, error)
- func OSDrivers() <-chan types.OSDriver
- func ProcessRegisteredConfigs(ctx types.Context)
- func RegisterClientDriver(name string, ctor types.NewClientDriver)
- func RegisterConfigReg(name string, f types.NewConfigReg)
- func RegisterIntegrationDriver(name string, ctor types.NewIntegrationDriver)
- func RegisterOSDriver(name string, ctor types.NewOSDriver)
- func RegisterRouter(router types.Router)
- func RegisterStorageDriver(name string, ctor types.NewStorageDriver)
- func RegisterStorageExecutor(name string, ctor types.NewStorageExecutor)
- func Routers() <-chan types.Router
- func StorageDrivers() <-chan types.StorageDriver
- func StorageExecutors() <-chan types.StorageExecutor
Constants ¶
This section is empty.
Variables ¶
var NewConfig func() gofig.Config
NewConfig is a function that returns a new Config object.
var NewConfigReg func(string) gofig.ConfigRegistration
NewConfigReg is a function that returns a new ConfigRegistration object.
Functions ¶
func ClientDrivers ¶
func ClientDrivers() <-chan types.ClientDriver
ClientDrivers returns a channel on which new instances of all registered remote local drivers can be received.
func ConfigRegs ¶ added in v0.6.0
func ConfigRegs(ctx types.Context) <-chan gofig.ConfigRegistration
ConfigRegs returns a channel on which all registered configuration registrations are returned.
func IntegrationDrivers ¶
func IntegrationDrivers() <-chan types.IntegrationDriver
IntegrationDrivers returns a channel on which new instances of all registered integration drivers can be received.
func NewClientDriver ¶
func NewClientDriver( name string) (types.ClientDriver, error)
NewClientDriver returns a new instance of the driver specified by the driver name.
func NewIntegrationDriver ¶
func NewIntegrationDriver(name string) (types.IntegrationDriver, error)
NewIntegrationDriver returns a new instance of the driver specified by the driver name.
func NewIntegrationDriverManager ¶
func NewIntegrationDriverManager( d types.IntegrationDriver) types.IntegrationDriver
NewIntegrationDriverManager returns a new integration driver manager.
func NewOSDriver ¶
NewOSDriver returns a new instance of the driver specified by the driver name.
func NewOSDriverManager ¶
NewOSDriverManager returns a new OS driver manager.
func NewStorageDriver ¶
func NewStorageDriver(name string) (types.StorageDriver, error)
NewStorageDriver returns a new instance of the driver specified by the driver name.
func NewStorageDriverManager ¶
func NewStorageDriverManager( d types.StorageDriver) types.StorageDriver
NewStorageDriverManager returns a new storage driver manager.
func NewStorageDriverManagerWithLogin ¶ added in v0.3.0
func NewStorageDriverManagerWithLogin( d types.StorageDriverWithLogin) types.StorageDriverWithLogin
NewStorageDriverManagerWithLogin returns a new storage driver manager.
func NewStorageExecutor ¶
func NewStorageExecutor(name string) (types.StorageExecutor, error)
NewStorageExecutor returns a new instance of the executor specified by the executor name.
func OSDrivers ¶
OSDrivers returns a channel on which new instances of all registered OS drivers can be received.
func ProcessRegisteredConfigs ¶ added in v0.6.0
ProcessRegisteredConfigs processes the registered configuration requests.
func RegisterClientDriver ¶
func RegisterClientDriver( name string, ctor types.NewClientDriver)
RegisterClientDriver registers a ClientDriver.
func RegisterConfigReg ¶ added in v0.6.0
func RegisterConfigReg(name string, f types.NewConfigReg)
RegisterConfigReg registers a new configuration registration request.
func RegisterIntegrationDriver ¶
func RegisterIntegrationDriver(name string, ctor types.NewIntegrationDriver)
RegisterIntegrationDriver registers a IntegrationDriver.
func RegisterOSDriver ¶
func RegisterOSDriver(name string, ctor types.NewOSDriver)
RegisterOSDriver registers a OSDriver.
func RegisterStorageDriver ¶
func RegisterStorageDriver( name string, ctor types.NewStorageDriver)
RegisterStorageDriver registers a StorageDriver.
func RegisterStorageExecutor ¶
func RegisterStorageExecutor(name string, ctor types.NewStorageExecutor)
RegisterStorageExecutor registers a StorageExecutor.
func Routers ¶
Routers returns a channel on which new instances of all registered routers can be received.
func StorageDrivers ¶
func StorageDrivers() <-chan types.StorageDriver
StorageDrivers returns a channel on which new instances of all registered remote storage drivers can be received.
func StorageExecutors ¶
func StorageExecutors() <-chan types.StorageExecutor
StorageExecutors returns a channel on which new instances of all registered storage executors can be received.
Types ¶
This section is empty.