Help us shape the future of Go! Take the 2026 Go Developer Survey

processor

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSchemaFound = errors.New("no schema found for resource type")

Functions

func GetSchemaForResourceType added in v0.50.0

func GetSchemaForResourceType(ctx context.Context, ucp *v20231001preview.ClientFactory, resourceID string, apiVersion string) (any, error)

GetSchemaForResourceType fetches the schema for a resource type from UCP

Types

type DynamicProcessor

type DynamicProcessor struct {
	// SecretMaterializer materializes declared recipe secret outputs into a managed Radius.Security/secrets
	// resource. When nil, secret materialization is skipped and recipe secret outputs are dropped (never
	// persisted on the owner resource).
	SecretMaterializer secret.Materializer
}

DynamicProcessor is a processor for dynamic resources. It implements the processors.ResourceProcessor interface.

func (*DynamicProcessor) Delete

func (d *DynamicProcessor) Delete(ctx context.Context, resource *datamodel.DynamicResource, options processors.Options) error

Delete implements the processors.Processor interface for dynamic resources. Deletion of the recipe-created resources is handled in recipe_delete_controller.go and inert_delete_controller.go. Here we cascade-delete the managed Radius.Security/secrets resource that backs this resource's declared secret outputs, if one was materialized.

func (*DynamicProcessor) Process

func (d *DynamicProcessor) Process(ctx context.Context, resource *datamodel.DynamicResource, options processors.Options) error

Process validates resource properties, and applies output values from the recipe output.

Jump to

Keyboard shortcuts

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