Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExtensionTypes = []string{
"none", "internal", "native", "portable", "service", "wasm", "js",
}
View Source
var PluginTypeMap = map[string]PluginType{ "sources": SOURCE, "sinks": SINK, "functions": FUNCTION, "portable": PORTABLE, "wasm": WASM, }
View Source
var PluginTypes = []string{"sources", "sinks", "functions", "portable", "wasm"}
Functions ¶
This section is empty.
Types ¶
type EXTENSION_TYPE ¶
type EXTENSION_TYPE int
const ( NONE_EXTENSION EXTENSION_TYPE = iota INTERNAL NATIVE_EXTENSION PORTABLE_EXTENSION SERVICE_EXTENSION WASM_EXTENSION JS_EXTENSION )
type FuncPlugin ¶
type FuncPlugin struct {
IOPlugin
// Optional, if not specified, a default element with the same name of the file will be registered
Functions []string `json:"functions"`
}
func (*FuncPlugin) GetSymbols ¶
func (fp *FuncPlugin) GetSymbols() []string
type IOPlugin ¶
type IOPlugin struct {
Name string `json:"name"`
File string `json:"file"`
ShellParas []string `json:"shellParas"`
}
IOPlugin Unify model. Flat all properties for each kind.
func (*IOPlugin) GetInstallScripts ¶
func (*IOPlugin) GetShellParas ¶
func (*IOPlugin) GetSymbols ¶
type Plugin ¶
type Plugin interface {
GetName() string
GetFile() string
GetShellParas() []string
GetSymbols() []string
SetName(n string)
GetInstallScripts() []byte
}
func NewPluginByType ¶
func NewPluginByType(t PluginType) Plugin
type PluginType ¶
type PluginType int
const ( SOURCE PluginType = iota SINK FUNCTION PORTABLE WASM )
Click to show internal directories.
Click to hide internal directories.