databinding

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

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

type AbstractDataBinding struct {
	Logger logger.Logger
}

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

type Registry struct {
	registry.Registry
}

func (*Registry) NewDataBinding

func (r *Registry) NewDataBinding(logger logger.Logger,
	kind string,
	name string,
	databindingConfiguration *functionconfig.DataBinding) (DataBinding, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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