plugin

package
v0.1.0-beta.202310070433 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultImageTag     = "latest"
	DefaultImageRepoURL = "us-docker.pkg.dev/steampipe/plugin"
	DefaultImageOrg     = "turbot"
)

Variables

This section is empty.

Functions

func Exists

func Exists(plugin string) (bool, error)

Exists looks up the version file and reports whether a plugin is already installed

func GetInstalledPlugins

func GetInstalledPlugins() (map[string]*modconfig.PluginVersionString, error)

GetInstalledPlugins returns the list of plugins keyed by the shortname (org/name) and its specific version Does not validate/check of available connections

func Install

func Install(ctx context.Context, plugin string, sub chan struct{}, opts ...ociinstaller.PluginInstallOption) (*ociinstaller.SteampipeImage, error)

Install installs a plugin in the local file system

func Remove

func Remove(ctx context.Context, image string, pluginConnections map[string][]*modconfig.Connection) (*pipeparser.PluginRemoveReport, error)

Remove removes an installed plugin

Types

type PluginListItem

type PluginListItem struct {
	Name        string
	Version     *modconfig.PluginVersionString
	Connections []string
}

PluginListItem is a struct representing an item in the list of plugins

func List

func List(pluginConnectionMap map[string][]*modconfig.Connection) ([]PluginListItem, error)

List returns all installed plugins

Jump to

Keyboard shortcuts

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