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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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