renderer

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetConfigValuesFunc

type GetConfigValuesFunc func(profile string) (interface{}, error)

GetConfigValuesFunc is function type that returns the configuration values for the given profile

type HoHRenderer

type HoHRenderer struct {
	// contains filtered or unexported fields
}

HoHRenderer is an implementation of the Renderer interface for multicluster-global-hub scenario

func (*HoHRenderer) Render

func (r *HoHRenderer) Render(component, profile string, getConfigValuesFunc GetConfigValuesFunc) (
	[]*unstructured.Unstructured, error,
)

func (*HoHRenderer) RenderWithFilter

func (r *HoHRenderer) RenderWithFilter(component, profile, filter string, getConfigValuesFunc GetConfigValuesFunc) (
	[]*unstructured.Unstructured, error,
)

type Renderer

type Renderer interface {
	Render(component, profile string, getConfigValuesFunc GetConfigValuesFunc) ([]*unstructured.Unstructured, error)
	RenderWithFilter(component, profile, filter string, getConfigValuesFunc GetConfigValuesFunc) (
		[]*unstructured.Unstructured, error)
}

Renderer is the interface for the template renderer

func NewHoHRenderer

func NewHoHRenderer(manifestFS embed.FS) Renderer

NewHoHRenderer create a HoHRenderer with given filesystem

Jump to

Keyboard shortcuts

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