Documentation ¶
Index ¶
- Constants
- type Renderer
- func (r Renderer) GetDependencyIDs(ctx context.Context, resource v1.DataModelInterface) (radiusResourceIDs []resources.ID, resourceIDs []resources.ID, err error)
- func (r Renderer) Render(ctx context.Context, dm v1.DataModelInterface, options renderers.RenderOptions) (renderers.RendererOutput, error)
Constants ¶
View Source
const ( ResourceType = "Applications.Core/httpRoutes" ResourceTypeSuffix = "httpRoutes" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
type Renderer struct { }
func (Renderer) GetDependencyIDs ¶
func (r Renderer) GetDependencyIDs(ctx context.Context, resource v1.DataModelInterface) (radiusResourceIDs []resources.ID, resourceIDs []resources.ID, err error)
GetDependencyIDs returns nils for the resourceIDs, radiusResourceIDs and an error.
func (Renderer) Render ¶
func (r Renderer) Render(ctx context.Context, dm v1.DataModelInterface, options renderers.RenderOptions) (renderers.RendererOutput, error)
Render checks if the DataModelInterface is a valid HTTP Route, sets default port if none is provided, creates a ComputedValueReference map, creates a service resource and returns a RendererOutput with the resources and computed values. It returns an error if the service resource creation fails.
Click to show internal directories.
Click to hide internal directories.