applications

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceTypeName = "Applications.Core/applications"
)

Variables

View Source
var (
	// ErrInvalidSource reprents the error when the source is not a valid resource ID or URL.
	ErrInvalidSource = errors.New("source is not a valid resource ID or URL")
)

Functions

func ComputeGraphResponse added in v0.58.0

func ComputeGraphResponse(ctx context.Context, applicationID resources.ID, environmentID string, connection sdk.Connection) (rest.Response, error)

ComputeGraphResponse computes the application graph for the given application and environment IDs and returns it wrapped in an OK rest.Response. It is shared by the Applications.Core and Radius.Core implementations of the getGraph custom action.

func CreateAppScopedNamespace

func CreateAppScopedNamespace(ctx context.Context, newResource, oldResource *datamodel.Application, opt *controller.Options) (rest.Response, error)

CreateAppScopedNamespace checks if a namespace already exists for the application and creates one if it doesn't, returning an error if a conflict is found.

func NewGetGraph added in v0.27.0

func NewGetGraph(opts ctrl.Options, connection sdk.Connection) (ctrl.Controller, error)

NewGetGraph creates a new instance of the GetGraph controller.

Types

type GetGraph added in v0.27.0

type GetGraph struct {
	ctrl.Operation[*datamodel.Application, datamodel.Application]
	// contains filtered or unexported fields
}

GetGraph is the controller implementation to get application graph.

func (*GetGraph) Run added in v0.27.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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