data

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 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 any

type Plugin

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

type Query

type Query any

Directories

Path Synopsis
golang

Jump to

Keyboard shortcuts

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