Documentation ¶
Index ¶
- func NewBuilder(kotsKinds *kotsutil.KotsKinds, registrySettings registrytypes.RegistrySettings, ...) (*template.Builder, error)
- func RenderContent(kotsKinds *kotsutil.KotsKinds, registrySettings registrytypes.RegistrySettings, ...) ([]byte, error)
- func RenderDir(archiveDir string, a *apptypes.App, downstreams []downstreamtypes.Downstream, ...) error
- func RenderFile(kotsKinds *kotsutil.KotsKinds, registrySettings registrytypes.RegistrySettings, ...) ([]byte, error)
- type Renderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
func RenderContent ¶
func RenderContent(kotsKinds *kotsutil.KotsKinds, registrySettings registrytypes.RegistrySettings, appSlug string, sequence int64, isAirgap bool, namespace string, inputContent []byte) ([]byte, error)
RenderContent renders any string/content this is useful for rendering single values, like a status informer
func RenderDir ¶
func RenderDir(archiveDir string, a *apptypes.App, downstreams []downstreamtypes.Downstream, registrySettings registrytypes.RegistrySettings, sequence int64) error
func RenderFile ¶
Types ¶
type Renderer ¶
type Renderer struct { }
func (Renderer) RenderDir ¶
func (r Renderer) RenderDir(archiveDir string, a *apptypes.App, downstreams []downstreamtypes.Downstream, registrySettings registrytypes.RegistrySettings, sequence int64) 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(kotsKinds *kotsutil.KotsKinds, registrySettings registrytypes.RegistrySettings, appSlug string, sequence int64, isAirgap bool, namespace string, inputContent []byte) ([]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.