Documentation
¶
Index ¶
- type DynamicResource
- func (d *DynamicResource) ApplyDeploymentOutput(deploymentOutput rpv1.DeploymentOutput) error
- func (d *DynamicResource) GetComputedValues() map[string]any
- func (d *DynamicResource) GetRecipe() *portableresources.ResourceRecipe
- func (d *DynamicResource) GetSecrets() map[string]rpv1.SecretValueReference
- func (d *DynamicResource) OutputResources() []rpv1.OutputResource
- func (d *DynamicResource) ResourceMetadata() rpv1.BasicResourcePropertiesAdapter
- func (d *DynamicResource) SetRecipe(recipe *portableresources.ResourceRecipe)
- func (d *DynamicResource) Status() map[string]any
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
func (d *DynamicResource) GetRecipe() *portableresources.ResourceRecipe
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.