Documentation
¶
Index ¶
- Constants
- Variables
- func ComputeGraphPayload(ctx context.Context, applicationID resources.ID, environmentID string, ...) (*corerpv20231001preview.ApplicationGraphResponse, error)
- func ComputeGraphResponse(ctx context.Context, applicationID resources.ID, environmentID string, ...) (rest.Response, error)
- func CreateAppScopedNamespace(ctx context.Context, newResource, oldResource *datamodel.Application, ...) (rest.Response, error)
- func NewGetGraph(opts ctrl.Options, connection sdk.Connection) (ctrl.Controller, error)
- type GetGraph
Constants ¶
const (
ResourceTypeName = "Applications.Core/applications"
)
Variables ¶
var ( // ErrInvalidSource represents 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 ComputeGraphPayload ¶ added in v0.60.0
func ComputeGraphPayload(ctx context.Context, applicationID resources.ID, environmentID string, connection sdk.Connection) (*corerpv20231001preview.ApplicationGraphResponse, error)
ComputeGraphPayload computes the application graph for the given application and environment IDs and returns the raw payload without wrapping it in a rest.Response. Used by ComputeGraphResponse (Applications.Core/applications/getGraph). The Radius.Core/applications/getGraph handler under v20250801preview owns its own copy of the graph pipeline; each API version keeps its own model types end-to-end so the two versions can evolve independently.
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.