spiff

package
v2.0.0-...-98cc131 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const TYPE = "spiff"

Variables

This section is empty.

Functions

func AddConfig

func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error

Types

type Spec

type Spec struct {
	cpi.MediaFileSpec `json:",inline"`
	// Values provide additional binding for the template processing
	Values json.RawMessage `json:"values,omitempty"`
	// Libraries specifies a list of spiff libraries to include in template processing
	Libraries []string `json:"libraries,omitempty"`
}

func New

func New(path, mediatype string, compress bool, values interface{}, libs ...string) (*Spec, error)

func (*Spec) GetBlob

func (*Spec) Validate

func (s *Spec) Validate(fldPath *field.Path, ctx inputs.Context, inputFilePath string) field.ErrorList

Jump to

Keyboard shortcuts

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