Documentation
¶
Index ¶
Constants ¶
const ( VerificationStatusVerified = "verified" VerificationStatusUnverified = "unverified" VerificationStatusChecksumMismatch = "checksum-mismatch" VerificationStatusError = "verification-error" )
const BinaryPrefix = "opencenter-"
BinaryPrefix is the expected prefix for external plugin executables.
Variables ¶
This section is empty.
Functions ¶
func Discover ¶
Discover returns a map of discovered plugin binary basenames to their full paths, using the same discovery rules as LoadExternalPlugins.
func DiscoverDetailed ¶
func DiscoverDetailed() map[string]PluginInfo
DiscoverDetailed returns the discovered plugin paths and verification state.
func LoadExternalPlugins ¶
LoadExternalPlugins discovers external plugin binaries and attaches them as cobra Commands to the provided root command. A plugin is any executable whose name starts with "opencenter-" located either in PATH or in the plugins dir.
Discovery locations (in order):
- OPENCENTER_PLUGINS_DIR (if set)
- <configDir>/plugins where configDir is resolved from env or default
- PATH entries
func SortedPluginNames ¶
func SortedPluginNames(discovered map[string]PluginInfo) []string
SortedPluginNames returns discovered plugin names in a stable order.
Types ¶
type PluginInfo ¶
PluginInfo contains the discovered path and verification metadata for a plugin.