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

graph

package
v0.62.0-rc.5 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: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeResourceHyperlink(portalURL *string, resourceName string) string

MakeResourceHyperlink wraps the given portal URL in a terminal hyperlink escape sequence using resourceName as the link text. It returns an empty string when no portal URL is available (for example, for non-Azure resources or when no Azure credential is registered).

func NewCommand

func NewCommand(factory framework.Factory) (*cobra.Command, framework.Runner)

NewCommand creates an instance of the command and runner for the `rad app graph` command.

Types

type Runner

type Runner struct {
	ConfigHolder            *framework.ConfigHolder
	Output                  output.Interface
	Bicep                   bicep.Interface
	Workspace               *workspaces.Workspace
	RadiusCoreClientFactory *corerpv20250801preview.ClientFactory

	ApplicationName string
	BicepFilePath   string

	// IncludeIcons, when true, causes the graph response to carry a deduped
	// `icons` map of hash → SVG bytes. When false the response has only
	// per-node `iconHash` values and consumers content-address the bytes
	// themselves.
	IncludeIcons bool

	Format string

	// GraphStore persists modeled graphs to the radius-graph archive
	// when running in repo-radius mode. Defaulted in NewRunner; tests may
	// substitute a mock implementation.
	GraphStore persistence.Store
}

Runner is the runner implementation for the `rad app graph` command.

The command has three modes, selected in Validate:

  • deployed: ApplicationName set, BicepFilePath empty.
  • enriched: ApplicationName and BicepFilePath both set.
  • modeled: BicepFilePath set, ApplicationName empty.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates a new instance of the `rad app graph` runner.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

Run runs the `rad app graph` command.

func (*Runner) Validate

func (r *Runner) Validate(cmd *cobra.Command, args []string) error

Validate runs validation for the `rad app graph` command.

Jump to

Keyboard shortcuts

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