render

package
v0.0.62 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const ArtifactFilename = ".rendr.yaml"

Variables

This section is empty.

Functions

func Exists

func Exists(path string) bool

func Walk

func Walk(fs billy.Filesystem, root string, walkFn filepath.WalkFunc) error

Walk walks the file tree rooted at root, calling fn for each file or directory in the tree, including root. All errors that arise visiting files and directories are filtered by fn: see the WalkFunc documentation for details.

The files are walked in lexical order, which makes the output deterministic but requires Walk to read an entire directory into memory before proceeding to walk that directory. Walk does not follow symbolic links.

Function adapted from https://github.com/golang/go/blob/3b770f2ccb1fa6fecc22ea822a19447b10b70c5c/src/path/filepath/path.go#L500

Types

type Artifact added in v0.0.34

type Artifact struct {
	BuildCommand string `yaml:"build"`
}

func GetArtifact added in v0.0.34

func GetArtifact(outPath string) (*Artifact, error)

type File added in v0.0.33

type File struct {
	Path       string
	Content    string
	Executable bool
	Template   bool
}

func (*File) Write added in v0.0.33

func (file *File) Write(outPath string, overwrite bool) error

type Files added in v0.0.33

type Files []File

func (Files) WriteAll added in v0.0.33

func (files Files) WriteAll(outPath string, overwrite bool) error

type InputMode

type InputMode string
const (
	RegularInputMode InputMode = "regular"
	NoInputMode      InputMode = "no"
	ForceInputMode   InputMode = "force"
)

type Root added in v0.0.57

type Root struct {
	Source string
	Path   string
}

type Template

type Template struct {
	Source        string
	BlueprintPath string
	ExtraRoots    []string
}

func (Template) GetArgsValues

func (t Template) GetArgsValues(args blueprint.Args, inputMode InputMode, valuesData *values.ValuesData, overridesKeysValues []string) (values.ArgsValues, error)

func (*Template) GetRoots added in v0.0.57

func (t *Template) GetRoots(blueprint *blueprint.Blueprint) []string

func (*Template) LoadBlueprint

func (t *Template) LoadBlueprint() (*blueprint.Blueprint, error)

func (*Template) Render

func (t *Template) Render(inputMode InputMode, valuesData *values.ValuesData, overridesKeysValues []string) (Files, error)

Jump to

Keyboard shortcuts

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