pluginmanager

package
v0.18.0-alpha.22 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const PluginManagerStructVersion = 20220411

Variables

This section is empty.

Functions

func GetPluginManager added in v0.11.1

func GetPluginManager() (pluginshared.PluginManager, error)

GetPluginManager connects to a running plugin manager

func StartNewInstance added in v0.11.1

func StartNewInstance(steampipeExecutablePath string) error

StartNewInstance loads the plugin manager state, stops any previous instance and instantiates a new plugin manager

func Stop added in v0.11.1

func Stop() error

Stop loads the plugin manager state and if a running instance is found, stop it

Types

type PluginManagerClient added in v0.11.1

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

PluginManagerClient is the client used by steampipe to access the plugin manager

func NewPluginManagerClient added in v0.11.1

func NewPluginManagerClient(pluginManagerState *PluginManagerState) (*PluginManagerClient, error)

func (*PluginManagerClient) Get added in v0.11.1

func (*PluginManagerClient) Shutdown added in v0.11.1

type PluginManagerState added in v0.11.1

type PluginManagerState struct {
	Protocol        plugin.Protocol `json:"protocol"`
	ProtocolVersion int             `json:"protocol_version"`
	Addr            *pb.SimpleAddr  `json:"addr"`
	Pid             int             `json:"pid"`
	// path to the steampipe executable
	Executable string `json:"executable"`
	// is the plugin manager running
	Running       bool  `json:"-"`
	StructVersion int64 `json:"struct_version"`
}

func LoadPluginManagerState added in v0.11.1

func LoadPluginManagerState() (*PluginManagerState, error)

func NewPluginManagerState added in v0.11.1

func NewPluginManagerState(executable string, reattach *plugin.ReattachConfig) *PluginManagerState

func (*PluginManagerState) Save added in v0.11.1

func (s *PluginManagerState) Save() error

Jump to

Keyboard shortcuts

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