ytt

package
v0.0.0-...-b25b198 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package ytt provides library for calling out to ytt the binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderYTTTemplate

func RenderYTTTemplate(options CommandOptions, filePaths []string, input io.Reader) (string, error)

RenderYTTTemplate is a convenience function to render YTT template.

Types

type Command

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

Command struct holds ytt command related information.

func NewYttCommand

func NewYttCommand(options CommandOptions) *Command

NewYttCommand returns a new instance of YTTCommand.

func (*Command) RenderTemplate

func (ytt *Command) RenderTemplate(filePaths []string, input io.Reader) (string, error)

RenderTemplate renders template given a set of file/directory Paths or standard input or both.

type CommandOptions

type CommandOptions struct {
	FailOnUnknownComments  bool
	Strict                 bool
	DangerousAllowSymlinks bool
}

CommandOptions specifies ytt command options.

Jump to

Keyboard shortcuts

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