registry

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

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 = gofig.New

NewConfig is a function that returns a new Config object.

View Source
var NewConfigReg = gofig.NewRegistration

NewConfigReg is a function that returns a new ConfigRegistration object.

Functions

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