data

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPlugin

func RegisterPlugin(name string, plugin *Creator) error

Types

type Creator

type Creator struct {
	F    func(Framework) (Plugin, error)
	Name string
}

type Framework

type Framework interface {
	Configuration() *config.Config
	Logger(string) *logrus.Entry
}

type Manager

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

func NewManager

func NewManager(ctx context.Context, fw Framework) (*Manager, error)

func (*Manager) DDLs added in v0.22.0

func (m *Manager) DDLs() []*ddl.DDL

DDLs is a list of DDLs for all known data plugins

func (*Manager) Execute

func (m *Manager) Execute(ctx context.Context, plugin string, query string, srv agents.ServerInfoSource) (map[string]OutputItem, error)

func (*Manager) FuncMap

func (m *Manager) FuncMap(si agents.ServerInfoSource) (ddl.FuncMap, error)

type OutputItem

type OutputItem interface{}

type Plugin

type Plugin interface {
	Run(context.Context, Query, agents.ServerInfoSource) (map[string]OutputItem, error)
	DLL() (*ddl.DDL, error)
}

type Query

type Query interface{}

Directories

Path Synopsis
golang

Jump to

Keyboard shortcuts

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