pluginmeta

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lookup

type Lookup interface {
	// GetProviderMetadata returns the plugin ID and version for a provider namespace.
	// The providerNamespace is the last segment of the plugin ID (e.g., "aws" from "newstack-cloud/aws").
	// Returns nil if the provider is not registered.
	GetProviderMetadata(providerNamespace string) *ProviderMetadata
}

Lookup provides access to provider plugin metadata.

func NewLookup

func NewLookup(manager pluginservicev1.Manager) Lookup

NewLookup creates a new Lookup that retrieves provider metadata from the plugin manager.

type LookupFunc

type LookupFunc func(providerNamespace string) (pluginID, pluginVersion string)

LookupFunc is a function type that can be used as a provider metadata lookup. This is useful for passing to DeployContext where a simple function signature is preferred.

func ToLookupFunc

func ToLookupFunc(lookup Lookup) LookupFunc

ToLookupFunc converts a Lookup interface to a LookupFunc.

type ProviderMetadata

type ProviderMetadata struct {
	PluginID      string
	PluginVersion string
}

ProviderMetadata holds plugin identification for a provider.

Jump to

Keyboard shortcuts

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