provider

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package provider defines the Provider type. A Provider holds a CUE transformer registry. Go performs component-to- transformer matching while CUE still executes each matched transformer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// Metadata is extracted for display and provider selection.
	Metadata *ProviderMetadata

	// Data is the fully evaluated CUE value for the provider,
	// including the transformer registry (#transformers) and all declared resources/traits.
	Data cue.Value
}

Provider holds a loaded provider definition. Data is the complete CUE value (including #transformers). Matching against components happens in Go via pkg/match.

type ProviderMetadata

type ProviderMetadata struct {
	// Name is the provider name (e.g., "kubernetes").
	Name string `json:"name"`

	// Description is a brief description of the provider.
	Description string `json:"description,omitempty"`

	// Version is the provider version.
	Version string `json:"version"`

	// Labels for provider categorization.
	Labels map[string]string `json:"labels,omitempty"`

	// Annotations for additional provider metadata.
	Annotations map[string]string `json:"annotations,omitempty"`
}

ProviderMetadata holds identity metadata for a provider.

Jump to

Keyboard shortcuts

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