template

package
v0.0.0-...-336e61a Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2016 License: Apache-2.0 Imports: 18 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig(conf *api.ConfigMap) config.Configuration

ReadConfig obtains the configuration defined by the user merged with the defaults.

func StandarizeKeyNames

func StandarizeKeyNames(data interface{}) map[string]interface{}

StandarizeKeyNames ...

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 map[string]interface{},
	isValidTemplate func([]byte) error) ([]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