pluginmanager

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MPL-2.0 Imports: 13 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 GetPluginUpdateReport added in v0.2.0

func GetPluginUpdateReport(installationID string) map[string]VersionCheckReport

GetPluginUpdateReport :: looks up and reports the updated version of plugins which are listed in versions.json

func Install

func Install(plugin string) (*ociinstaller.SteampipeImage, error)

Install :: install plugin in the local file system

func IsPluginExists added in v0.2.0

func IsPluginExists(plugin string) (bool, error)

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

func Remove

func Remove(image string, pluginConnections map[string][]string) error

Remove ::

Types

type PluginListItem

type PluginListItem struct {
	Name        string
	Version     string
	Connections []string
}

PluginListItem :: an item in the list of plugins

func List

func List(reverseConnectionMap map[string][]string) ([]PluginListItem, error)

List :: lists all installed plugins

type PluginVersionChecker added in v0.2.0

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

PluginVersionChecker :: wrapper struct over the plugin version check utilities

type VersionCheckReport added in v0.2.0

type VersionCheckReport struct {
	Plugin        *versionfile.InstalledVersion
	CheckResponse versionCheckPayload
	CheckRequest  versionCheckPayload
}

VersionCheckReport ::

Jump to

Keyboard shortcuts

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