Documentation
¶
Index ¶
- Constants
- Variables
- 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 ¶
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.
Click to show internal directories.
Click to hide internal directories.