pluginmanager

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const PluginManagerStructVersion = 20220411

Variables

This section is empty.

Functions

func GetPluginManager

func GetPluginManager() (pluginshared.PluginManager, error)

GetPluginManager connects to a running plugin manager

func Stop

func Stop() error

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

Types

type PluginManagerClient

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

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

func NewPluginManagerClient

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

func (*PluginManagerClient) Get

func (*PluginManagerClient) RefreshConnections

func (*PluginManagerClient) Shutdown

type State added in v0.21.0

type State 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 LoadState added in v0.21.0

func LoadState() (*State, error)

func NewState added in v0.21.0

func NewState(executable string, reattach *plugin.ReattachConfig) *State

func StartNewInstance

func StartNewInstance(steampipeExecutablePath string) (*State, error)

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

func (*State) Save added in v0.21.0

func (s *State) Save() error

Jump to

Keyboard shortcuts

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