volume

package
v0.27.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceType = "Applications.Core/volumes"
)

Variables

This section is empty.

Functions

func NewRenderer

func NewRenderer(armConfig *armauth.ArmConfig) renderers.Renderer

NewRenderer creates a new Renderer instance with the given ArmConfig, for volume resources.

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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