Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAdapterPlugin ¶
func RegisterAdapterPlugin(p AdapterPlugin)
RegisterAdapterPlugin registers adapter plugin
Types ¶
type Adapter ¶
type Adapter interface { // Start start adapter lifetime Start() // Stop stop adapter lifetime Stop() // Apply init Apply() error // Config get config for Adapter Config() interface{} }
Adapter adapter interface
type AdapterPlugin ¶
type AdapterPlugin interface { // Kind returns the unique kind name to represent itself. Kind() string // CreateAdapter return the Adapter callback CreateAdapter(ad *model.Adapter) (Adapter, error) }
AdapterPlugin plugin for adapter
func GetAdapterPlugin ¶
func GetAdapterPlugin(kind string) (AdapterPlugin, error)
GetAdapterPlugin get plugin by kind
Click to show internal directories.
Click to hide internal directories.