datamodel

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 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,omitempty"`
}

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

type RecipeDataModel

type RecipeDataModel interface {
	// Recipe provides access to the user-specified recipe configuration. Can return nil.
	Recipe() *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