pluginmeta

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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