registry

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2017 License: Apache-2.0 Imports: 11 Imported by: 228

Documentation

Overview

Package registry is the central hub for Drivers and other types that follow the init-time registration.

Index

Constants

This section is empty.

Variables

View Source
var NewConfig func() gofig.Config

NewConfig is a function that returns a new Config object.

View Source
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

func NewOSDriver(name string) (types.OSDriver, error)

NewOSDriver returns a new instance of the driver specified by the driver name.

func NewOSDriverManager

func NewOSDriverManager(
	d types.OSDriver) types.OSDriver

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

func OSDrivers() <-chan types.OSDriver

OSDrivers returns a channel on which new instances of all registered OS drivers can be received.

func ProcessRegisteredConfigs added in v0.6.0

func ProcessRegisteredConfigs(ctx types.Context)

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 RegisterRouter

func RegisterRouter(router types.Router)

RegisterRouter registers a Router.

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

func Routers() <-chan types.Router

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL