Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginMeta ¶
func ReadMetadata ¶
func ReadMetadata(path string) (PluginMeta, error)
Reads relevant metadata from the binary at the given path.
func (PluginMeta) ShortName ¶ added in v0.6.0
func (pm PluginMeta) ShortName() string
type PluginMode ¶ added in v0.6.0
type PluginMode string
const ( ModeUnknown PluginMode = "" ModeGateway PluginMode = "gateway" ModeAgent PluginMode = "agent" )
type Scheme ¶
type Scheme interface { Add(string, plugin.Plugin) PluginMap() map[string]plugin.Plugin Mode() PluginMode }
func NewScheme ¶
func NewScheme(opts ...SchemeOption) Scheme
type SchemeOption ¶ added in v0.6.0
type SchemeOption func(*SchemeOptions)
func WithMode ¶ added in v0.6.0
func WithMode(mode PluginMode) SchemeOption
type SchemeOptions ¶ added in v0.6.0
type SchemeOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.