graph

package
v0.59.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package graph provides primitives used by the rad CLI to build and persist application graph artifacts (modeled, planned and deployed) without touching the Radius control plane.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildModeledGraph

func BuildModeledGraph(template map[string]any) (*corerpv20250801preview.ApplicationGraphResponse, error)

BuildModeledGraph parses an ARM JSON template (typically the output of `bicep build` on an application's app.bicep) and returns the corresponding modeled application graph. The graph contains application resources, their connections and dependsOn relationships, and a stable diff hash for each resource. It does not contain output resources or runtime status — those are only available for planned and deployed graphs.

func ComputeDiffHash

func ComputeDiffHash(properties map[string]any, dependsOn ...string) (string, error)

ComputeDiffHash returns a stable "sha256:<hex>" digest computed over the authorable subset of properties and a sorted dependsOn list. The digest lets tooling classify resources as added, removed, modified or unchanged across two graphs of the same application without comparing every property.

Types

This section is empty.

Jump to

Keyboard shortcuts

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