render

package
v1.122.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder(kotsKinds *kotsutil.KotsKinds, registrySettings registrytypes.RegistrySettings, appSlug string, sequence int64, isAirgap bool, namespace string) (*template.Builder, error)

func RenderContent

func RenderContent(opts types.RenderFileOptions) ([]byte, error)

RenderContent renders any string/content this is useful for rendering single values, like a status informer

func RenderDir

func RenderDir(opts types.RenderDirOptions) error

func RenderFile

func RenderFile(opts types.RenderFileOptions) ([]byte, error)

Types

type Renderer

type Renderer struct {
}

func (Renderer) RenderDir

func (r Renderer) RenderDir(opts types.RenderDirOptions) error

RenderDir renders an app archive dir this is useful for when the license/config have updated, and template functions need to be evaluated again

func (Renderer) RenderFile

func (r Renderer) RenderFile(opts types.RenderFileOptions) ([]byte, error)

RenderFile renders a single file this is useful for upstream/kotskinds files that are not rendered in the dir

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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