yaml

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger   logrus.FieldLogger `validate:"required"`
	Optional bool               `validate:"required"`
	Template *template.Template `validate:"required"`
}

Config defines the input to a NewRenderer operation

type Engine

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

Engine manages rendering a single confd yaml template

func New

func New(c *Config) (*Engine, error)

New returns a new Engine value

func (*Engine) Render

func (e *Engine) Render(keys chan *template.Key, w io.Writer) error

Render processes the template using the specified backend

Jump to

Keyboard shortcuts

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