Documentation ¶
Index ¶
Constants ¶
View Source
const (
ResourceType = "Applications.Core/volumes"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Renderer ¶
type Renderer struct {
VolumeRenderers map[string]VolumeRenderer
}
Renderer represents the volume resource renderer.
func (*Renderer) GetDependencyIDs ¶
func (r *Renderer) GetDependencyIDs(ctx context.Context, resource v1.DataModelInterface) ([]resources.ID, []resources.ID, error)
GetDependencyIDs returns nil 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 given DataModelInterface is a VolumeResource, and if so, checks if the VolumeRenderers map contains a renderer for the VolumeResource's Kind. If so, it calls the renderer and returns the output, otherwise it returns an error.
type VolumeRenderer ¶
type VolumeRenderer interface {
Render(context.Context, v1.DataModelInterface, *renderers.RenderOptions) (*renderers.RendererOutput, error)
}
VolumeRenderer is the interface representing Volume resource.
Click to show internal directories.
Click to hide internal directories.