meta

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginMeta

type PluginMeta struct {
	BinaryPath string
	GoVersion  string
	Module     string
}

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
}

Jump to

Keyboard shortcuts

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