plugininterface

package
v0.0.0-...-ba26d65 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gatherer

type Gatherer interface {
	Gather(factsRequests []entities.FactRequest) ([]entities.Fact, error)
}

Gatherer is the interface exposed as a plugin.

type GathererPlugin

type GathererPlugin struct {
	// Impl Injection
	Impl Gatherer
}

This is the implementation of plugin.Plugin

func (GathererPlugin) Client

func (GathererPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)

func (*GathererPlugin) Server

func (p *GathererPlugin) Server(*plugin.MuxBroker) (interface{}, error)

type GathererRPC

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

func (*GathererRPC) Gather

func (g *GathererRPC) Gather(factsRequest []entities.FactRequest) ([]entities.Fact, error)

type GathererRPCServer

type GathererRPCServer struct {
	Impl Gatherer
}

func (*GathererRPCServer) Gather

func (s *GathererRPCServer) Gather(args []entities.FactRequest, resp *[]entities.Fact) error

Jump to

Keyboard shortcuts

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