bindings

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputBinding added in v0.4.0

type InputBinding struct {
	Name          string
	FactoryMethod func() bindings.InputBinding
}

InputBinding is an input binding component definition.

func NewInput added in v0.4.0

func NewInput(name string, factoryMethod func() bindings.InputBinding) InputBinding

NewInput creates a InputBinding.

type OutputBinding added in v0.4.0

type OutputBinding struct {
	Name          string
	FactoryMethod func() bindings.OutputBinding
}

OutputBinding is an output binding component definition.

func NewOutput added in v0.4.0

func NewOutput(name string, factoryMethod func() bindings.OutputBinding) OutputBinding

NewOutput creates a OutputBinding.

type Registry

type Registry interface {
	RegisterInputBindings(components ...InputBinding)
	RegisterOutputBindings(components ...OutputBinding)
	HasInputBinding(name, version string) bool
	HasOutputBinding(name, version string) bool
	CreateInputBinding(name, version string) (bindings.InputBinding, error)
	CreateOutputBinding(name, version string) (bindings.OutputBinding, error)
}

Registry is the interface of a components that allows callers to get registered instances of input and output bindings.

func NewRegistry

func NewRegistry() Registry

NewRegistry is used to create new bindings.

Jump to

Keyboard shortcuts

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