connector

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(configDir string) *Registry

func (*Registry) AddConnection

func (reg *Registry) AddConnection(id string, name string, connType string, conn model.ConnInterface)

Adds existing connection as connector instance into the registry

func (*Registry) AddInstance

func (reg *Registry) AddInstance(inst *model.Instance)

Adds existing instance to registry

func (*Registry) CreateInstance

func (reg *Registry) CreateInstance(id string, name string, plugin string, config interface{}) model.ConnInterface

Creates instance of connector using one of registered plugins

func (*Registry) GetAllInstances

func (reg *Registry) GetAllInstances() []model.InstanceView

Returns pointer to existing instance of connector

func (*Registry) GetInstance

func (reg *Registry) GetInstance(id string) *model.Instance

Returns pointer to existing instance of connector

func (*Registry) LoadInstancesFromDisk

func (reg *Registry) LoadInstancesFromDisk() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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