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 ¶
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 ¶
ProviderMetadata holds plugin identification for a provider.
Click to show internal directories.
Click to hide internal directories.