template

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

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

Template ...

func NewTemplate

func NewTemplate(file string, onChange func()) (*Template, error)

NewTemplate returns a new Template instance or an error if the specified template file contains errors

func (*Template) Close

func (t *Template) Close()

Close removes the file watcher

func (*Template) Write

func (t *Template) Write(conf config.TemplateConfig) ([]byte, error)

Write populates a buffer using a template with NGINX configuration and the servers and upstreams created by Ingress rules

Jump to

Keyboard shortcuts

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