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

graph

package
v0.59.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeResourceHyperlink(resourceID, resourceName string) string

MakeResourceHyperlink builds a terminal hyperlink for an Azure resource. Returns an empty string for non-Azure resources.

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.

func ProviderFromID added in v0.59.0

func ProviderFromID(id string) string

ProviderFromID extracts the provider from a resource ID string.

Types

type Runner

type Runner struct {
	ConfigHolder      *framework.ConfigHolder
	ConnectionFactory connections.Factory
	Output            output.Interface
	Bicep             bicep.Interface

	// Deployed-graph mode fields.
	ApplicationName string
	Workspace       *workspaces.Workspace

	// Modeled-graph mode field.
	BicepFilePath string

	Format string

	// GraphStore persists modeled graphs to the radius-graph orphan branch
	// 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.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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