Documentation ¶
Index ¶
- func NewBuilder(kotsKinds *kotsutil.KotsKinds, registrySettings registrytypes.RegistrySettings, ...) (*template.Builder, error)
- func RenderContent(opts types.RenderFileOptions) ([]byte, error)
- func RenderDir(opts types.RenderDirOptions) error
- func RenderFile(opts types.RenderFileOptions) ([]byte, error)
- type Renderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
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
Click to show internal directories.
Click to hide internal directories.