datamodel

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicResource

type DynamicResource struct {
	v1.BaseResource

	// Properties stores the properties of the resource being tracked.
	Properties map[string]any `json:"properties"`
}

DynamicResource is used as the data model for dynamic resources (UDT).

A dynamic resource uses a user-provided OpenAPI specification to define the resource schema. Therefore, the properties of the resource are not known at compile time.

func (*DynamicResource) ApplyDeploymentOutput added in v0.45.0

func (d *DynamicResource) ApplyDeploymentOutput(deploymentOutput rpv1.DeploymentOutput) error

ApplyDeploymentOutput implements v1.RadiusResourceModel.

func (*DynamicResource) GetComputedValues added in v0.48.0

func (d *DynamicResource) GetComputedValues() map[string]any

GetComputedValues returns the computed values from the status map.

func (*DynamicResource) GetRecipe added in v0.45.0

GetRecipe implements datamodel.RecipeDataModel.

func (*DynamicResource) GetSecrets added in v0.48.0

func (d *DynamicResource) GetSecrets() map[string]rpv1.SecretValueReference

GetSecrets returns the secrets from the status map as map[string]rpv1.SecretValueReference.

func (*DynamicResource) OutputResources added in v0.45.0

func (d *DynamicResource) OutputResources() []rpv1.OutputResource

OutputResources implements v1.RadiusResourceModel.

func (*DynamicResource) ResourceMetadata added in v0.45.0

func (d *DynamicResource) ResourceMetadata() rpv1.BasicResourcePropertiesAdapter

ResourceMetadata returns an adapter that provides standardized access to BasicResourceProperties of the DynamicResource instance.

func (*DynamicResource) SetRecipe added in v0.45.0

func (d *DynamicResource) SetRecipe(recipe *portableresources.ResourceRecipe)

SetRecipe implements datamodel.RecipeDataModel.

func (*DynamicResource) Status added in v0.45.0

func (d *DynamicResource) Status() map[string]any

Status() returns the status of the resource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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