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

datamodel

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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RecipeContextParameter is the parameter context for recipe deployment
	RecipeContextParameter string = "context"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PortableResourceMetadata

type PortableResourceMetadata struct {
	// ComputedValues map is any resource values that will be needed for more operations.
	// For example; database name to generate secrets for cosmos DB.
	ComputedValues map[string]any `json:"computedValues,omitempty"`

	// Stores action to retrieve secret values. For Azure, connectionstring is accessed through cosmos listConnectionString operation, if secrets are not provided as input
	SecretValues map[string]rpv1.SecretValueReference `json:"secretValues,omitempty"`

	RecipeData portableresources.RecipeData `json:"recipeData"`
}

PortableResourceMetadata represents internal DataModel properties common to all portable resource types.

type RecipeDataModel

type RecipeDataModel interface {
	// GetRecipe provides access to the user-specified recipe configuration. Can return nil.
	GetRecipe() *portableresources.ResourceRecipe

	// SetRecipe sets the recipe configuration for the resource.
	SetRecipe(*portableresources.ResourceRecipe)
}

RecipeDataModel should be implemented on the datamodel of types that support recipes.

Jump to

Keyboard shortcuts

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