Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RegistrySingleton = Registry{ Registry: *registry.NewRegistry("databinding"), }
global singleton
Functions ¶
This section is empty.
Types ¶
type AbstractDataBinding ¶
func (*AbstractDataBinding) GetContextObject ¶
func (adb *AbstractDataBinding) GetContextObject() (interface{}, error)
GetContextObject will return the object that is injected into the context
func (*AbstractDataBinding) Start ¶
func (adb *AbstractDataBinding) Start() error
Start will start the data binding, connecting to the remote resource
func (*AbstractDataBinding) Stop ¶
func (adb *AbstractDataBinding) Stop() error
Stop will stop the data binding, cleaning up resources and tearing down connections
type Configuration ¶
type Configuration struct {
functionconfig.DataBinding
ID string
}
func NewConfiguration ¶
func NewConfiguration(id string, databindingConfiguration *functionconfig.DataBinding) *Configuration
type Creator ¶
type Creator interface {
// Create creates a trigger instance
Create(logger.Logger, string, *functionconfig.DataBinding) (DataBinding, error)
}
Creator creates a databinding instance
type DataBinding ¶
type DataBinding interface {
// Start will start the data binding, connecting to the remote resource
Start() error
// Stop will stop the data binding, cleaning up resources and tearing down connections
Stop() error
// GetContextObject will return the object that is injected into the context
GetContextObject() (interface{}, error)
}
type Registry ¶
func (*Registry) NewDataBinding ¶
func (r *Registry) NewDataBinding(logger logger.Logger, kind string, name string, databindingConfiguration *functionconfig.DataBinding) (DataBinding, error)
Click to show internal directories.
Click to hide internal directories.