chart

package
v0.0.0-...-3261f4a Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoTargets = errors.New("chart has no targets")
)

Functions

func ListRecursiveFiles

func ListRecursiveFiles(path string) ([]string, error)

Types

type Chart

type Chart struct {
	Path    string
	Targets map[string]*ChartTarget
}

func ParseChartfile

func ParseChartfile(input io.Reader) (*Chart, error)

func (*Chart) Build

func (c *Chart) Build(dstDir string) error

func (*Chart) Template

func (c *Chart) Template(out io.Writer) error

type ChartCommand

type ChartCommand interface {
	Name() string
	Run(string, map[string]string) error
	Parse(*parser.Node) error
}

type ChartTarget

type ChartTarget struct {
	Base     string
	Alias    string
	Commands []ChartCommand
}

func (*ChartTarget) Build

func (t *ChartTarget) Build(basePath string, allPaths map[string]string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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